Wykres commitów

125 Commity (27c2b403dbd3b6bb1b31f687ca4069434301465f)

Autor SHA1 Wiadomość Data
James Bourbeau 624ad94073 Remove getattr usage 2018-12-13 11:09:50 -06:00
James Bourbeau 2e31e6e80e Add Dockerfile repo2docker labels 2018-12-12 22:05:06 -06:00
yuvipanda 3b0b77259f Inject docker.APIClient into methods that need them
- Creating a new client with 'auto' version causes repeated
  unnecessary network requests to discover version of docker daemon.
- Testing is easier this way, since we can inject a mocked docker
  client more easily
2018-12-10 11:18:01 -08:00
yuvipanda 1dacdd4c46 Allow specifying images to reuse cache from
This lets us explicitly specify images that repo2docker
should try to re-use cached layers from. Docker normally only
looks for layers from images that were *built* locally - if
we want it to look in images that were *pulled* from a registry,
we need to specify it here.
2018-12-05 11:10:50 -08:00
yuvipanda 82e0dc0149 Make apt be quieter
Currently a *lot* of our log info is from apt packages being
installed, and package lists being updated. This is mostly not
very useful information to users. The following outputs are
hidden:

- apt-get update, purge & clean
- apt-get installs for base packages

When there is any error from any of the apt-get steps, they will
be printed. Any packages the user explicitly lists (via apt.txt)
will have their install status messages output.
2018-11-28 23:11:36 -08:00
nuest 68194a08a2 reformat some long lines 2018-11-09 07:46:31 +01:00
nuest 58a5c8b4c2 make loops more readable 2018-11-09 07:40:31 +01:00
Tim Head c49694a5ea
Update repo2docker/buildpacks/base.py
Co-Authored-By: nuest <daniel.nuest@wwu.de>
2018-11-07 18:51:57 +01:00
Tim Head d849664826
Update repo2docker/buildpacks/base.py
Co-Authored-By: nuest <daniel.nuest@wwu.de>
2018-11-07 18:51:51 +01:00
nuest df7c6205c0 do not install Stencila Python context if only python-jupyter cells found 2018-11-05 19:00:39 +01:00
nuest b032a7cd27 safe one if clause (intersection is already false-y) 2018-11-05 18:51:10 +01:00
nuest b1bff5bf5e parse Stencila xml files instead of regex 2018-10-30 17:01:05 +01:00
nuest 9c81c3ed19 rename stencila_manifest_contexts to stencila_contexts
also remove dev comment
2018-10-30 16:25:40 +01:00
nuest d6dc570a14 continue Stencila detection if /binder dir is present, improve 2018-10-30 16:02:40 +01:00
nuest 3f4da20f7e reduce calls to stencila_manifest_contexts 2018-10-30 11:58:46 +01:00
nuest da41a90e04 update versions of stencila/r and stencila/py 2018-10-30 10:33:18 +01:00
nuest 3a479b6dee install R for Stencila from R buildpack 2018-10-30 10:32:42 +01:00
nuest 8342fbd1c0 do not look for stencila if binder dir found 2018-10-30 09:02:47 +01:00
nuest 9624f0f161 extract contexts from stencila document 2018-10-29 22:51:28 +01:00
nuest 849b3f9bf9 fix some typos 2018-10-29 14:11:48 +01:00
Giovanni Pizzi 192d01099b Fix relative location of the start script
The compilation of a very simple example with a start
script in the main folder was failing (see #399)
because the `start` script was not found.
Most probably, the reason is that the folder in which
the script resides is not in the PATH. To solve this,
we replace the `start` string with a relative `./start`,
which solves the problem and completes the build and the
run.
2018-09-14 16:07:17 +02:00
Tim Head 286f56c391 Split out tests, tweak docs, and a style change
This splits out the test for the launch script from the postBuild script
test. Makes some adjustments to the documentation of the launch script
functionality and applies some pythonista styling.
2018-08-15 17:10:53 +02:00
Joseph Hamman 915fc8d8ff update after talking to @yuvipanda 2018-08-14 17:08:48 -06:00
Joseph Hamman 0595471f2d put launch script in home directory 2018-08-13 14:44:08 -06:00
Joseph Hamman da0ed1eee0 Merge branch 'master' of github.com:jupyter/repo2docker into feature/launch_script 2018-08-13 14:12:12 -06:00
Tim Head 4af5c6140c Hardcode detection of the distribution name 2018-08-06 07:34:52 +02:00
Tim Head 5755a838a8 Fix install command for nodejs 2018-08-06 00:28:10 +02:00
Tim Head 23fa2f4e20 Add missing version tag to DEB links 2018-08-05 23:24:39 +02:00
Joseph Hamman 907732cdc0 fix typos 2018-08-02 23:21:57 -07:00
Chris Holdgraf 465177c0cb
Merge pull request #364 from GladysNalvarte/install_nodejs
Install nodejs/npm from nodesource
2018-08-01 08:39:40 -07:00
Gladys Nalvarte 6a5a518227 Install nodejs/npm from nodesource 2018-07-31 15:59:16 +02:00
Joseph Hamman f40e4ecdcb update entrypoint logic 2018-07-30 16:03:32 -07:00
Joseph Hamman 6324bf1a0f strawman implementation of launch script 2018-07-25 09:28:17 -07:00
Min RK 4aff6c59ba rework stencila as an ‘optional frontend’
instead of a buildpack

stencila will be installed via `nbstencilaproxy` if a stencila manifest.xml is found
2018-07-20 17:14:14 -07:00
Min RK cce1a47b09 separate get_build_env from get_env
so that runtime environment variables don’t trigger rebuild
2018-07-20 10:23:53 -07:00
J. Forde e1d47df30e fixing conflict 2018-06-26 15:54:31 -07:00
yuvipanda 751531b632 Use XDG standard ~/.local for user software installs
~/.local is also where things like pip install --user
seem to install things, so we should use that instead of ~/local.
2018-05-18 18:22:49 -07:00
Chris Holdgraf da3522851f
removing extra curly brackets 2018-05-12 11:32:39 -07:00
Andrea Borruso cd6371c313
Update base.py 2018-05-12 10:05:42 +02:00
Andrea Borruso c8a31b8baf
To add the user bin folder to the path
Here thread https://github.com/jupyterhub/binderhub/issues/557
2018-05-12 08:54:39 +02:00
Min RK 7b58a62817 set DEBIAN_FRONTEND=noninteractive
avoids possible prompts during setup of apt packages
2018-04-26 12:46:37 +02:00
Min RK ce88db7b83 bump base image to ubuntu 18.04 2018-04-26 10:18:37 +02:00
Chris Holdgraf 3ceb1fb39c adding warning for windows platform 2018-04-23 14:35:01 -07:00
bitnik 20f9c7d7cc
split post build script command in Docker file
`RUN chmod +x postBuild && ./postBuild` causes `./postBuild: Text file busy` error with Docker version 1.13.1
2018-04-09 11:27:09 +02:00
Chris Holdgraf 2d0772afb4 fixing python2 search 2018-03-20 21:34:17 +00:00
Kevin Mader 421278ad95
Update base.py
adding unzip to base packages so you can just run unzip on the terminal (closing https://github.com/jupyter/repo2docker/issues/251)
2018-03-13 22:07:38 +01:00
Chris Holdgraf 30ffdb3fdb
Merge branch 'master' into add-default-command 2018-02-20 11:19:51 -08:00
Chris Holdgraf 6b8224e08f
exec-style command 2018-02-20 11:18:54 -08:00
Min RK 9809b93f37
Merge pull request #241 from yuvipanda/no-executable
Do not require postBuild to be executable
2018-02-19 15:07:30 +01:00
yuvipanda 01bb6d1e19 Do not require postBuild to be executable
This is hard for windows users and from the GitHub UI,
and provides dubious benefits. So let's remove the requirement!

Fixes #240
2018-02-15 16:46:32 -08:00
Min RK c857f438b3 add appendix
supports adding arbitrary build steps to the end of Dockerfile
2018-02-14 11:34:10 +01:00
yuvipanda e3bf8a16c6 Remove usage of LoggingConfigurable in BuildPack 2018-02-01 04:27:15 -08:00
yuvipanda be10cadbcb Remove traitlet imports from all buildpacks 2018-02-01 04:23:34 -08:00
yuvipanda 4d19924180 Use inheritance to define composed buildpacks
- This is much cleaner to understand than traitlets
- Remove 'name' and 'component' traitlets
2018-02-01 04:23:34 -08:00
yuvipanda bcf3aedce2 Fix failing Julia test 2018-02-01 02:13:19 -08:00
yuvipanda efe14e7580 Fix postBuild to work properly 2018-02-01 02:10:30 -08:00
yuvipanda f32e8c1267 Move postbuild scripts to method from traitlet 2018-02-01 01:46:53 -08:00
yuvipanda 28bccecfff Switch assemble_scripts to use methods instead of traitlets 2018-02-01 01:43:14 -08:00
yuvipanda 42eb8e573c Convert build_script & build_script files to methods 2018-02-01 01:39:36 -08:00
yuvipanda c48e8d4586 Move labels from traitlet to method 2018-02-01 01:23:56 -08:00
yuvipanda d3c6703e9e Move path and env from traitlets to methods 2018-02-01 01:21:17 -08:00
yuvipanda dc653388f5 Use methods for packages and base packages, not traitlets 2018-02-01 01:11:40 -08:00
yuvipanda 09843f5439 Bump to artful
Zesty fell out of support on Jan 13, and the packages have
started disappearing from http://archive.ubuntu.com/ubuntu/ and
other mirrors as of today. This will totally screw up our
build processes whenever it hits the mirror we use.
2018-01-17 17:11:29 -08:00
nmih 5e19c2653b Fix indentation causing only last line of apt.txt to be parsed 2017-12-31 01:38:04 -08:00
Aaron Watters 5da8bcba33 Add default command to base Dockerfile template 2017-12-21 11:51:19 -05:00
yuvipanda 25177f0343 Set $USER environment variable in built images
Lots of code looks for this. This is generally set by PAM or
somesuch I believe. Let's set it explicitly!
2017-12-19 13:05:33 -08:00
yuvipanda 8f36572770 Allow passing in uid and username of user built into image
This allows volumes to properly respect the uid of the user
from the host. Much easier than using user namespaces
2017-12-19 12:46:22 -08:00
Tim Head b893463735 Apply PEP8 style roller 2017-12-08 15:32:21 +01:00
Min RK d21d9a7b7c
Merge pull request #151 from GladysNalvarte/master
fixing empty lines and comments in apt.txt
2017-12-01 12:24:42 +01:00
yuvipanda c3ec9c9fa8 s/memoryswap/memswap/
Since clearly the equivalent of 'memory' is 'memswap' grumble
2017-11-30 17:17:03 -08:00
yuvipanda 86c24c1a18 Set limits for how much memory docker build can use
This prevents builds from gobbling all the RAM on a node!
2017-11-30 17:14:42 -08:00
Gladys Nalvarte 82b0275a29 fixing empty lines and comments in apt.txt 2017-11-30 15:50:40 +01:00
yuvipanda c43d45ce21 Move conda support files next to the code
Better than in a separate files dir IMO
2017-11-30 01:44:25 -08:00
yuvipanda a52d49636c Remove unused imports in buildpack files 2017-11-30 01:29:40 -08:00
yuvipanda 1ddaf0bcb1 Split detectors.py into individual files
These were buildpacks now anyway, not detectors.
2017-11-30 01:29:40 -08:00