Skip to content

Commit

Permalink
Add .circleci/config.yml for arm
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Jul 2, 2021
1 parent 26ece27 commit 37a5f70
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
version: 2.1

orbs:
python: circleci/[email protected]

jobs:
# Testing on ARM64
# https://circleci.com/docs/2.0/arm-resources/#using-arm-resources
test-arm:
machine:
image: ubuntu-2004:202101-01
# TODO: resource_class is ignored and falls back to the standard x86_64 medium
# Need to apply to use arm
resource_class: arm.medium
steps:
- checkout

- run:
command: uname -a
name: Check architecture

- run:
command: >-
curl -sfL https://get.k3s.io |
INSTALL_K3S_CHANNEL=v1.20 sh -s -
--disable metrics-server
--disable traefik
--docker
name: Install K3S

- run:
command: |
mkdir -p ~/.kube
sudo cat /etc/rancher/k3s/k3s.yaml > "$HOME/.kube/config"
chmod 600 "$HOME/.kube/config"
name: Prepare a kubeconfig in ~/.kube/config

- run:
command: |
. ci/common
setup_helm
pip3 install --no-cache-dir -r dev-requirements.txt
name: Install dependencies

- run:
command: |
chartpress
name: Run chartpress

- run:
command: |
export KUBECONFIG="$HOME/.kube/config"
helm upgrade --install jupyterhub ./jupyterhub --values dev-config.yaml --values dev-config-arm.yaml --wait
name: Install local chart

- run:
command: |
export KUBECONFIG="$HOME/.kube/config"
export HUB_URL=http://localhost:30080
. ./ci/common
pytest --verbose --color=yes ./tests -m 'not netpol'
name: Run tests

workflows:
main:
jobs:
- test-arm
9 changes: 9 additions & 0 deletions dev-config-arm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Override some values in dev-config.yaml
proxy:
https:
enabled: false

singleuser:
image:
name: sakuraiyuta/base-notebook
tag: latest

0 comments on commit 37a5f70

Please sign in to comment.