Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design2
/
2015104215
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
장재혁
2021-06-08 02:38:14 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
7def41a2134d732351b6c0c9297581308fe72ea5
7def41a2
2 parents
63a66870
6131b99e
Merge branch 'kubeTest' into 'master'
Kube test See merge request
!3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
4 deletions
project/docker_image/backend/deployment.yml
project/docker_image/backend/service.yml
project/docker_image/frontend/deployment.yml
project/docker_image/frontend/dockerfile
project/docker_image/frontend/service.yml
project/docker_image/backend/deployment.yml
View file @
7def41a
...
...
@@ -4,7 +4,6 @@ metadata:
name
:
backend
labels
:
app
:
backend
tier
:
backend
spec
:
selector
:
matchLabels
:
...
...
project/docker_image/backend/service.yml
View file @
7def41a
apiVersion
:
v1
kind
:
Service
metadata
:
labels
:
app
:
backend
name
:
backend
spec
:
type
:
ClusterIP
...
...
@@ -8,4 +10,5 @@ spec:
-
port
:
5000
targetPort
:
5000
selector
:
name
:
backend
app
:
backend
\ No newline at end of file
...
...
project/docker_image/frontend/deployment.yml
View file @
7def41a
...
...
@@ -4,7 +4,7 @@ metadata:
name
:
frontend
labels
:
app
:
frontend
tier
:
frontend
name
:
frontend
spec
:
selector
:
matchLabels
:
...
...
@@ -17,7 +17,7 @@ spec:
spec
:
containers
:
-
name
:
frontend
image
:
khujay15/next-docker-test
image
:
khujay15/next-docker-test
:latest
ports
:
-
containerPort
:
3000
name
:
frontend
\ No newline at end of file
...
...
project/docker_image/frontend/dockerfile
View file @
7def41a
...
...
@@ -11,7 +11,7 @@ ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
RUN
apt-get install -y git
RUN
npm install -g yarn
RUN
mkdir /web
RUN
git clone --depth
=
1 http://khuhub.khu.ac.kr/2021-1-capstone-design2/2015104215/ /web
RUN
git clone -
b kubeTest --single-branch -
-depth
=
1 http://khuhub.khu.ac.kr/2021-1-capstone-design2/2015104215/ /web
RUN
cd
/web/project;yarn install
EXPOSE
3000
RUN
cd
/web/project;yarn build:web
...
...
project/docker_image/frontend/service.yml
View file @
7def41a
...
...
@@ -8,4 +8,5 @@ spec:
-
port
:
3000
targetPort
:
3000
selector
:
name
:
frontend
app
:
frontend
...
...
Please
register
or
login
to post a comment