Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/gruntworker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <code@rebertia.com>2015-04-30 00:38:44 +0300
committerChris Rebert <code@rebertia.com>2015-04-30 00:38:44 +0300
commite79034115c77f2e2a12d83a1f1b58315928d1beb (patch)
tree849a73c2adecef5cc5f9ba4d68077daa51cd3bbb
parent3a438d53a7a39044804febf291d9a768059dbacf (diff)
Fix #6 (hopefully)
-rw-r--r--Dockerfile7
-rwxr-xr-xsetup_droplet.sh2
2 files changed, 5 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 807c37d..e35c02e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,7 +16,7 @@ RUN ["useradd", "gruntworker"]
RUN ["mkdir", "-p", "/opt/gruntworker"]
ADD gruntworker.py /opt/gruntworker/gruntworker.py
ADD gruntworker.sh /opt/gruntworker/gruntworker.sh
-ADD git-repo /git-repo
+RUN ["mkdir", "/opt/gruntworker/git-repo"]
# Setup SSH keys
ADD ssh/id_rsa.pub /home/gruntworker/.ssh/id_rsa.pub
@@ -24,13 +24,14 @@ ADD ssh/id_rsa /home/gruntworker/.ssh/id_rsa
RUN ssh-keyscan -t rsa github.com > /home/gruntworker/.ssh/known_hosts
# Fix permissions
-RUN ["chown", "-R", "gruntworker:gruntworker", "/git-repo"]
+RUN ["chown", "-R", "gruntworker:gruntworker", "/opt/gruntworker/git-repo"]
RUN ["chown", "-R", "gruntworker:gruntworker", "/home/gruntworker"]
# chmod must happen AFTER chown, due to https://github.com/docker/docker/issues/6047
RUN ["chmod", "-R", "go-rwx", "/home/gruntworker/.ssh"]
+VOLUME /opt/gruntworker/git-repo
USER gruntworker
-WORKDIR /git-repo
+WORKDIR /opt/gruntworker/git-repo
RUN ["git", "remote", "set-url", "origin", "https://github.com/twbs/bootstrap.git"]
RUN ["git", "remote", "set-url", "--push", "origin", "git@github.com:twbs/bootstrap.git"]
diff --git a/setup_droplet.sh b/setup_droplet.sh
index 92c7752..52c3086 100755
--- a/setup_droplet.sh
+++ b/setup_droplet.sh
@@ -1,6 +1,6 @@
#!/bin/bash
# Step 0.0: Put SSH keys in ./ssh
-# Step 0.1: Checkout git repo to ./git-repo
+# Step 0.1: Checkout git repo to /opt/gruntworker/git-repo
set -e -x