Skip to content

Commit

Permalink
Merge pull request #32 from yambottle/master
Browse files Browse the repository at this point in the history
feat: ✨ update image base hash and size limit
  • Loading branch information
Ernaldis authored Sep 16, 2022
2 parents 561b765 + c771df2 commit f970993
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
JUPYTERHUB_VER: '1.4.2'
DOCKER_CLIENT_TIMEOUT: "120"
COMPOSE_HTTP_TIMEOUT: "120"
BASE_IMAGE_HASH: "b980d46"
BASE_IMAGE_HASH: "8121b5d"
steps:
- uses: actions/checkout@v2
- name: Determine platform tag
Expand Down
10 changes: 5 additions & 5 deletions config/.env
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PY_VER=3.9

JUPYTERHUB_VER=1.4.2

BASE_IMAGE_HASH=b980d46
BASE_IMAGE_HASH=8121b5d



Expand All @@ -23,8 +23,8 @@ PLATFORM=linux/amd64

HOST_UID=1000

DISTRO=alpine
PACKAGE_MANAGER=apk
# DISTRO=alpine
# PACKAGE_MANAGER=apk

# DISTRO=debian
# PACKAGE_MANAGER=apt
DISTRO=debian
PACKAGE_MANAGER=apt
16 changes: 8 additions & 8 deletions tests/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@ SHELL_CMD_TEMPLATE="docker run --rm -i \$SHELL_CMD_FLAGS $REF \
$([ ${DISTRO} == 'debian' ] && echo bash || echo sh) -c"
# determine reference size
if [ $DISTRO == alpine ] && [ $PY_VER == '3.10' ]; then
SIZE_LIMIT=991
SIZE_LIMIT=1402
elif [ $DISTRO == alpine ] && [ $PY_VER == '3.9' ]; then
SIZE_LIMIT=723
SIZE_LIMIT=1402
elif [ $DISTRO == alpine ] && [ $PY_VER == '3.8' ]; then
SIZE_LIMIT=682
SIZE_LIMIT=1402
elif [ $DISTRO == alpine ] && [ $PY_VER == '3.7' ]; then
SIZE_LIMIT=693
SIZE_LIMIT=1402
elif [ $DISTRO == debian ] && [ $PY_VER == '3.10' ]; then
SIZE_LIMIT=1210
SIZE_LIMIT=1650
elif [ $DISTRO == debian ] && [ $PY_VER == '3.9' ]; then
SIZE_LIMIT=962
SIZE_LIMIT=1650
elif [ $DISTRO == debian ] && [ $PY_VER == '3.8' ]; then
SIZE_LIMIT=915
SIZE_LIMIT=1650
elif [ $DISTRO == debian ] && [ $PY_VER == '3.7' ]; then
SIZE_LIMIT=912
SIZE_LIMIT=1650
fi
SIZE_LIMIT=$(echo "scale=4; $SIZE_LIMIT * 1.10" | bc)
# verify size minimal
Expand Down

0 comments on commit f970993

Please sign in to comment.