whole-tale / repo2docker_wholetale

Repo2docker plugin for Whole Tale
Other
0 stars 1 forks source link

Enable postBuild support for rocker image #4

Closed Xarthisius closed 4 years ago

Xarthisius commented 4 years ago

We weren't passing post_build_scripts keyword for Rocker template. This PR fixes that.

How to test?

  1. Create Tale with RStudio image
  2. Add postBuild
  3. Check if postBuild was run in the build log

Alternative:

mkdir /tmp/my_tale
cat <<- EOF > /tmp/my_tale/environment.json
  {"config": {"buildpack": "RockerBuildPack"}}
EOF
touch /tmp/my_tale/postBuild
repo2docker --config <path_to_r2d_wt>/repo2docker_wholetale/repo2docker_config.py \
   --user-name rstudio --user-id 1000 --debug --no-build \
   /tmp/my_tale 2>&1 | grep 'RUN ./postBuild'