Commit 33707fed by 김현기

docker test ok

parent ad885796
node_modules
public/
../backend/
\ No newline at end of file
../frontend/
\ No newline at end of file
#!/bin/bash
docker rmi base/home-main-ds:0.3
docker-compose build --no-cache base-vue-cli-3-ds
FROM nginx:1.15.3-alpine
MAINTAINER David You <frog@falinux.com>
ADD html /usr/share/nginx/html
RUN mkdir -p /usr/share/nginx/html/test/single/
RUN ln -s /usr/share/nginx/html/ /usr/share/nginx/html/test/single/test1
FROM node:14.18.1
MAINTAINER David You <frog@falinux.com>
ENV DEBIAN_FRONTEND noninteractive
USER root
# Set default locale for the environment
ENV LC_ALL C.UTF-8
ENV LANG ko_KR.UTF-8
ENV LANGUAGE ko_KR.UTF-8
RUN apt-get update && apt-get install -y apt-utils
RUN apt-get update && \
apt-get install -y \
libgtk2.0-0 \
libnotify-dev \
libgconf-2-4 \
libnss3 \
libxss1 \
libasound2 \
xvfb
RUN apt-get update && apt-get install -y fonts-nanum
RUN echo "force new chrome here"
# install Chromebrowser
RUN \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \
apt-get update && \
apt-get install -y dbus-x11 google-chrome-stable && \
rm -rf /var/lib/apt/lists/*
# "fake" dbus address to prevent errors
# https://github.com/SeleniumHQ/docker-selenium/issues/87
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
# Add zip utility - it comes in very handy
RUN apt-get update && apt-get install -y zip
RUN npm install -g npm@8.0.0
RUN yarn global add @vue/cli
# versions of local tools
RUN node -v
RUN npm -v
RUN yarn -v
RUN vue --version
RUN google-chrome --version
RUN zip --version
RUN git --version
# good colors for most applications
ENV TERM xterm
# avoid million NPM install messages
ENV npm_config_loglevel warn
# allow installing when the main user is root
ENV npm_config_unsafe_perm true
WORKDIR /apps
CMD bash
#!/bin/bash
#echo -e "home-test-single-test1 select"
#echo "test-single-test1" > .select-home-target
#
#target=$(cat .select-home-target)
docker-compose run --name neuro-home-backend-init \
--rm \
--workdir /apps/backend/ \
base-home-main-ds \
npm install
#!/bin/bash
#echo -e "neuro-home-frontend select"
#echo "neuro-home-frontend" > .select-home-frontend-target
#
#target=$(cat .select-home-frontend-target)
docker-compose run --name neuro-home-frontend-init \
--rm \
--workdir /apps/frontend/ \
base-home-main-ds \
npm install
#!/bin/bash
if [ ! -f '.select-home-target' ]; then
echo -e "다음 중 원하는 타켓 설정 스크립트를 실행하세요"
echo -e ""
ls init-*
echo -e ""
exit 1
fi
target=$(cat .select-home-target)
echo -e "\\033]2;kcert2-home-$target dev sever\\007"
echo -e "kcert2-home-$target dev sever"
touch ../apps/frontend/src/vue-apollo.js
docker-compose run --name kcert2-home-$target-dev-backend \
--rm \
-u $(id -u ${USER}):$(id -g ${USER}) \
--workdir /apps/backend/ \
-e AS_SERVICE=yes \
base-home-main-ds \
npm start
#!/bin/bash
if [ ! -f '.select-home-target' ]; then
echo -e "다음 중 원하는 타켓 설정 스크립트를 실행하세요"
echo -e ""
ls init-*
echo -e ""
exit 1
fi
target=$(cat .select-home-target)
echo -e "\\033]2;kcert2-home-$target dev sever\\007"
echo -e "kcert2-home-$target dev sever"
touch ../apps/frontend/src/vue-apollo.js
docker-compose run --name kcert2-home-$target-dev \
--rm \
-u $(id -u ${USER}):$(id -g ${USER}) \
--workdir /apps/frontend/ \
-e AS_SERVICE=yes \
base-home-main-ds \
npm run serve
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