Commit 722fed14 authored by priit's avatar priit

Dockeri alge

parent ff3c6c4d
...@@ -19,7 +19,7 @@ RUN mkdir -p /src && mkdir -p /config && mkdir -p /wrapper/files && mkdir -p /wr ...@@ -19,7 +19,7 @@ RUN mkdir -p /src && mkdir -p /config && mkdir -p /wrapper/files && mkdir -p /wr
cd /src && \ cd /src && \
git clone 'https://github.com/BitWeb/keeleliin-wrapper-service.git' . && \ git clone 'https://github.com/BitWeb/keeleliin-wrapper-service.git' . && \
npm install && \ npm install && \
echo "NPM is installed 5" echo "NPM is installed 6"
#Expose port #Expose port
EXPOSE 3000 EXPOSE 3000
......
...@@ -12,6 +12,6 @@ $ docker build -t kl_wrapper_name . ...@@ -12,6 +12,6 @@ $ docker build -t kl_wrapper_name .
* Käivita loodud kl_wrapper_name * Käivita loodud kl_wrapper_name
$ docker run --name kl_wrapper -d -it --link kl_redis:redis -p 3000:3000 -v /wrapper/concat:/src kl_wrapper $ docker run --name kl_wrapper_name -d --link kl_redis:redis -p 3000:3000 -v /wrapper/concat/:/config kl_wrapper_name
#!/bin/bash #!/bin/bash
cp -R -u -p /src/config_dist.js /config/config.js if [ ! -f /config/config.js ]; then
cp -R -u -p /src/config_dist.js /config/config.js
fi
if [ -f /config/config.js ]; then if [ -f /config/config.js ]; then
cp /config/config.js /src/config.js cp /config/config.js /src/config.js
......
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