Commit c49091c5 authored by Carlos Herrero's avatar Carlos Herrero

Cambios en el Home.tsx

parent ade3f7ee
FROM centos:7.6.1810
RUN yum -y update
RUN yum -y install curl wget vim git
RUN curl --silent --location https://rpm.nodesource.com/setup_14.x | bash -
RUN yum -y install nodejs
RUN curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo
RUN rpm --import https://dl.yarnpkg.com/rpm/pubkey.gpg
RUN yum -y install yarn
ARG BRANCH
ARG VERSION
RUN wget https://dl.google.com/go/go1.17.1.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz
RUN echo "export PATH=$PATH:/usr/local/go/bin" >> $HOME/.bash_profile && \
source ~/.bash_profile
RUN echo "$VERSION ver 3"
RUN git clone http://gitlab.hiperpbx.com/javier.larrosa/web-console.git -b $BRANCH
RUN cd web-console/web && \
yarn install && \
yarn build
RUN cd /web-console/web && \
git clone https://github.com/rakyll/statik
RUN cd /web-console/web/statik && \
/usr/local/go/bin/go build && \
cp -a statik /usr/sbin/
RUN cd /web-console && \
statik -src=web/build && \
/usr/local/go/bin/go install && \
/usr/local/go/bin/go build
ADD VERSION /web-console/VERSION
ADD changelog /web-console/changelog
WORKDIR /web-console
ADD start.sh /web-console/start.sh
CMD ./start.sh
#!/bin/bash
BRANCH=$1
VERSION=$2
echo "${VERSION}" > VERSION
docker build \
--build-arg VERSION=$VERSION \
--build-arg BRANCH=$BRANCH \
-t registry.hiperpbx.com/web-console:$VERSION \
.
docker push registry.hiperpbx.com/web-console:$VERSION
#Cambios en las versiones
1.0.0: Imagen en centos basandome en el dockerfile original
#!/bin/bash
VERSION=$1
REACT_APP_CLUSTER_URL="10.0.5.46"
docker rm -f web-console
docker run \
-d \
--name web-console \
--hostname web-console \
-e REACT_APP_CLUSTER_URL=${REACT_APP_CLUSTER_URL} \
-p 2222:2222 \
registry.hiperpbx.com/web-console:$VERSION
#!/bin/bash
source ~/.bash_profile
sed -i "s#__REACT_APP_CLUSTER_URL__#$REACT_APP_CLUSTER_URL#g" /web-console/web/.env
cd /web-console/web && \
yarn build
cd /web-console && \
statik -src=web/build && \
/usr/local/go/bin/go build
# Levantamos el web-console
./ssh-web-console
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