Commit d620a081 authored by Carlos Herrero's avatar Carlos Herrero

cambios en dockerfile

parent 929090f3
...@@ -14,8 +14,6 @@ RUN rpm --import https://dl.yarnpkg.com/rpm/pubkey.gpg ...@@ -14,8 +14,6 @@ RUN rpm --import https://dl.yarnpkg.com/rpm/pubkey.gpg
RUN yum -y install yarn RUN yum -y install yarn
ARG BRANCH
ARG VERSION ARG VERSION
RUN wget https://dl.google.com/go/go1.17.1.linux-amd64.tar.gz RUN wget https://dl.google.com/go/go1.17.1.linux-amd64.tar.gz
...@@ -27,7 +25,7 @@ RUN echo "export PATH=$PATH:/usr/local/go/bin" >> $HOME/.bash_profile && \ ...@@ -27,7 +25,7 @@ RUN echo "export PATH=$PATH:/usr/local/go/bin" >> $HOME/.bash_profile && \
RUN echo "$VERSION ver 4" RUN echo "$VERSION ver 4"
RUN git clone http://gitlab.hiperpbx.com/javier.larrosa/web-console.git -b $BRANCH RUN git clone http://gitlab.hiperpbx.com/javier.larrosa/web-console.git
RUN cd web-console/web && \ RUN cd web-console/web && \
yarn install && \ yarn install && \
......
#!/bin/bash #!/bin/bash
BRANCH=$1 VERSION=$1
VERSION=$2
echo "${VERSION}" > VERSION echo "${VERSION}" > VERSION
docker build \ docker build \
--build-arg VERSION=$VERSION \ --build-arg VERSION=$VERSION \
--build-arg BRANCH=$BRANCH \
-t registry.hiperpbx.com/web-console:$VERSION \ -t registry.hiperpbx.com/web-console:$VERSION \
. .
......
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