Commit 46a926d0 authored by Aral Balkan's avatar Aral Balkan
Browse files

Updated Dockerfile. Added SSH key copy step.

parent 526de6ce
......@@ -23,10 +23,6 @@ RUN mkdir -p /app && cp -a /tmp/node_modules /app/
# Copy the source into the container
COPY . /app/
# Copy the SSH keys from the host to the container
# (So that the app can talk to source.ind.ie)
COPY ../.ssh/id_rsa /root/.ssh/
WORKDIR /app
EXPOSE 5000
......
......@@ -13,6 +13,6 @@ Then, create the volumes:
dokku docker-options:add blockdown-builder.ind.ie deploy "-v /root/ind.ie.blockdown-builder:/app/ind.ie.blockdown-builder"
dokku docker-options:add blockdown-builder.ind.ie deploy "-v /root/.ssh:/app/.ssh"
dokku docker-options:add blockdown-builder.ind.ie run "-v /home/dokku/.ssh:/root/.ssh:ro"
To use, set up post-push and post-merge webhooks on Gitlab for both the Builder and Content repositories to point to `https://url/for/your/installation/build/(token-from-config.coffee)`
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment