Commit 9e8eb961 authored by Matteo Quintiliani's avatar Matteo Quintiliani
Browse files

Add CACHEGIT to rebuild git-cloning Swarm Configuration

parent 31279b25
......@@ -40,7 +40,9 @@ RUN wget "${SWARM_BASEURL}/${SWARM_VERSION}-bin.zip" \
&& unzip ${SWARM_VERSION}-bin.zip
# Clone 'earthworm/swarm' git repository
ARG CACHEGIT=1
RUN git clone git@gitlab.rm.ingv.it:earthworm/swarm.git
ARG CACHEGIT=0
# Copy INGV swarm configuration files from git
RUN cp -v /opt/swarm/Swarm* /opt/${SWARM_VERSION}/ \
......
......@@ -14,6 +14,12 @@ $ cd docker_swarm
$ docker build --tag swarm .
```
To rebuild git-cloning Swarm Configuration:
```
docker build --build-arg CACHEGIT=$(date +%s) --tag swarm .
```
### Run docker (Mac OSX)
#### XQuartz
Download and install **XQuartz**:
......
Supports Markdown
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