Erik Sundell
91d3f150e5
Use ARG instead of ENV for build time only environment variable
2024-03-24 22:35:15 +01:00
Erik Sundell
f121a0d481
Use modern ENV syntax in Dockerfile
...
The use of `ENV key value` is an old alternative syntax still around for backward compatibility, but may be removed according to https://docs.docker.com/reference/dockerfile/#env .
2024-03-24 22:22:47 +01:00
Erik Sundell
57e4b3f687
Fix unrelated comment
2024-03-24 22:18:23 +01:00
YuviPanda
601fa25291
Don't use --user to install anything
2024-03-22 19:40:41 -07:00
YuviPanda
756e7d1a98
Put everything inside a venv
2024-03-22 19:40:41 -07:00
YuviPanda
dd9f6ad2de
Bump alpine version used in Dockerfile
...
Brings us to latest alpine, and to a newer python
2024-03-22 19:40:41 -07:00
Yuvi Panda
99125ab179
Merge branch 'main' into feat/new-base
2023-01-06 22:28:27 -08:00
Simon Li
0fffbf8873
Revert "mount wheels from build stage instead of copying them"
...
This reverts commit ed82b83eba
.
2023-01-01 11:32:50 +00:00
Bartosz Kardas
21ad4cac54
Bump linux alpine to 3.17 due to setuptools bug
2022-12-11 23:04:03 +01:00
Bartosz Kardas
76731c885b
Added setuptools
2022-12-11 22:08:18 +01:00
Bartosz Kardas
8a359f9c00
Readded setuptools
2022-12-11 01:34:05 +01:00
YuviPanda
aae6a71621
Try using py3-pip when installing in Alpine
...
Seems to be perhaps different than py-pip
2022-12-10 13:29:44 -08:00
YuviPanda
90c375c5f7
Add setuptools to built image
...
hg-evolve seems to need it, as otherwise it is failing
with:
16 4.520 Downloading hg-evolve-10.5.3.tar.gz (847 kB)
2022-12-10 13:24:09 -08:00
Erik Sundell
ff586d0e10
docker image: update alpine to 3.16
2022-11-02 16:42:29 +01:00
Min RK
ed82b83eba
mount wheels from build stage instead of copying them
...
avoids extra layer of unused wheel files
use mounted pip cache instead of disabling cache - all the benefits of no cache (size), and all the benefits of cache (local rebuild time)
2022-09-02 14:08:13 +02:00
Min RK
88acca0e8a
avoid re-resolving dependencies in Dockerfile
...
dependencies are resolved during `pip wheel` in the build stage
avoids errors about removing the apk-installed python-packaging
2022-08-22 15:23:53 +02:00
Burt Holzman
41f3478331
Update Dockerfile to current Alpine (ALPINE_VERSION=3.15.0)
...
In order to use podman as a backend for repo2docker (a la https://github.com/manics/repo2podman ),
a minimum version of Alpine 3.14 is needed.
2022-02-10 09:44:26 -06:00
Simon Li
f7cadcd5f0
Revert "fix: Dockerfile issue regarding six"
...
This reverts commit f3906be35b
.
2021-09-03 17:05:12 +01:00
Simon Li
97ca881a01
Remove automated docker cloud hooks
2021-08-12 20:50:29 +01:00
Erik Sundell
f3906be35b
fix: Dockerfile issue regarding six
2021-07-28 14:01:32 +02:00
Erik Sundell
d1bbffac30
fix: avoid docker 5.0.0
2021-07-28 13:58:08 +02:00
Erik Sundell
231cf1cb13
fix: workaround docker==5.0.0 not importing its dependencies
2021-07-15 22:22:00 +02:00
YuviPanda
b18188d5ed
Add build-base to build stage of docker image
...
ruamel.yaml depends on ruamel.yaml.clib, which requires
compilation on alpine. It did not seem to require the
packages in build-base before, but it does now.
2021-06-29 15:29:32 +05:30
Gerhard Bräunlich
e04a14a7cc
Add entrypoint script which automatically propagates *_PROXY env vars to docker config
2021-01-13 13:57:52 +01:00
paugier
3cdde89328
By default run Mercurial tests + enable the topic extension from code (no need for config file)
2020-09-10 21:48:46 +02:00
paugier
96914545e1
Update Dockerfile (ALPINE_VERSION=3.12.0 & install mercurial) + remove mercurial from install_requires
2020-09-09 18:10:19 +02:00
Hamel Husain
a33ab4e618
Update Dockerfile
2020-05-16 11:30:29 -07:00
Hamel Husain
360b33e7b1
Update Dockerfile
2020-05-15 15:21:38 -07:00
Tim Head
9e9dd062bc
Restore the hooks directory when building the docker image
2019-09-08 17:11:28 +02:00
Min RK
0e2349fdec
avoid dirty in repo2docker version in docker image
...
by calling git clean
2019-09-06 12:26:56 +02:00
Minh Hoang
a0715be50f
Adding bash to Dockerfile to fix git-credential-env
2019-07-10 09:43:29 -07:00
Min RK
b41db221b1
base docker image on alpine
...
much lighter image
2019-06-17 11:01:56 +02:00
Min RK
ee93bcf1a6
add git-lfs
...
needed for cloning repos with files stored in LFS
2019-06-13 13:46:29 +02:00
Min RK
58cc9fcd4c
use multi-stage build
...
- python 3.7
- build wheels in first stage, install in second
- run with slim image by default instead of full (~200MB vs ~1GB)
2018-12-19 14:32:48 +01:00
Mukundan Sundararajan
549bd9663b
add ability for port mapping to work with non jupyter-workflow
...
Added tests for port mapping
Added tests for publish all exposed ports
Added argument validation for ports argument
Added short form for argument publish. Changed variable name port to ports.
2018-01-11 16:49:09 -08:00
yuvipanda
f79192ee50
Remove commented out git installation
...
Git is present by default
2018-01-03 13:46:26 -08:00
yuvipanda
379c52bac3
Stop using alpine base images
...
- It is currently breaking the build, since alpine does not
support binary wheels & we introduced ruamel.yaml which has
binary dependencies
- pip / python on alpine is broken wrt symlinks, making local
testing harder
2018-01-03 13:13:00 -08:00
Min RK
ed96e22743
separate RUN for git-credential-env
2017-11-22 14:56:09 +01:00
Min RK
504aeb7300
add git-credential-env
...
and configure git to use it by default
`git-credential-env` only echoes the $GIT_CREDENTIAL_ENV environment variable
when git asks for https credentials.
with this, setting GIT_CREDENTIAL_ENV="username=name\npassword=xxx" sets the credentials
that will be used.
e.g.
docker run -e GIT_CREDENTIAL_ENV="username=name\npassword=xxx" jupyter/repo2docker https://github.com/private/repo
2017-11-17 16:05:46 +01:00
yuvipanda
c41dd815d7
Add git to the repo2docker docker image
2017-10-04 19:40:28 -07:00
yuvipanda
6c9960eab1
Switch to using alpine based image for repo2docker
...
This cuts image size from under 300MB to under 100MB. Plus
we will never actually need this to have additional libraries
installed, since it's talking to the docker socket directly
to build new images. So switching to alpine here is worth it.
2017-10-04 17:42:13 -07:00
yuvipanda
b23f088ae8
Cleanup Dockerfile + Manifest
2017-07-29 16:49:40 -07:00
yuvipanda
e81703aaaf
Cleanup dockerfile a little
...
- Don't do pip install -U pip - this makes the image build more
non-deterministic than necessary. 17.04 has the latest version of
pip, and we can stick to newest ubuntu quite aggressivley to keep
up in the cases it matters.
- Set --no-cache-dir in pip install, so we don't actually build
wheels - they are useless in our situation. This also lets us not
have to install wheels
- Make note about
2017-05-27 18:09:02 -07:00
Min RK
54d5f85ced
upgrade pip
2017-05-24 10:52:04 -07:00
yuvipanda
02ea11a0bf
Use ubuntu 17.04 instead of 16.10 as base
2017-05-21 15:37:47 -07:00
yuvipanda
9e2a16929d
Have Dockerfile build off current dir
...
Makes it much easier to test!
2017-05-09 13:39:50 -07:00
yuvipanda
53268f2d74
Add a simple but fully functional Dockerfile
2017-05-09 03:07:56 -07:00