forked from jupyterhub/zero-to-jupyterhub-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |