Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

Commit

Permalink
improving setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslavl1 committed Aug 18, 2015
1 parent fd91724 commit f5370ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion distribution/release/nodejs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ COPY . /src
# to docker build command to allow setting up proxy
ADD setup.sh /tmp/setup.sh
RUN chmod +x /tmp/setup.sh
RUN /tmp/setup.sh
RUN /tmp/setup.sh /src

# Set the working directory
WORKDIR /src
Expand Down
2 changes: 1 addition & 1 deletion distribution/release/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ COPY . /src
# to docker build command to allow setting up proxy
ADD setup.sh /tmp/setup.sh
RUN chmod +x /tmp/setup.sh
RUN /tmp/setup.sh
RUN /tmp/setup.sh /src

# Set the working directory
WORKDIR /src
Expand Down
5 changes: 4 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

if [ -n "$1" ];then
cd $1
fi

function test_connection()
{
curl --connect-timeout 5 -s -X OPTIONS http://www.google.com >> /dev/null
Expand Down Expand Up @@ -39,7 +43,6 @@ function setup_container()
{
echo "Setting up container.."

cd /src
npm install
}

Expand Down

0 comments on commit f5370ef

Please sign in to comment.