Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloudl
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ishtiaq Ahmed
cloudl
Commits
f8384b06
Commit
f8384b06
authored
Sep 11, 2019
by
kavinduchamiran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v15
parent
d2f1d973
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
13 deletions
+12
-13
.gitlab-ci.yml
.gitlab-ci.yml
+8
-9
nginx.conf
nginx/nginx.conf
+3
-3
Home.js
src/containers/Home.js
+1
-1
No files found.
.gitlab-ci.yml
View file @
f8384b06
...
@@ -20,8 +20,8 @@ docker_build:
...
@@ -20,8 +20,8 @@ docker_build:
script
:
script
:
-
docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
-
docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
-
docker build -t ${CONTAINER_IMAGE} .
-
docker build -t ${CONTAINER_IMAGE} .
-
docker tag ${CONTAINER_IMAGE} kavinduchamiran/${CI_COMMIT_REF_NAME}:latest
#
- docker tag ${CONTAINER_IMAGE} kavinduchamiran/${CI_COMMIT_REF_NAME}:latest
-
docker push
kavinduchamiran/${CI_COMMIT_REF_NAME}:latest
-
docker push
${CONTAINER_IMAGE}
kube_deploy
:
kube_deploy
:
image
:
lwolf/kubectl_deployer:latest
image
:
lwolf/kubectl_deployer:latest
...
@@ -37,10 +37,9 @@ kube_deploy:
...
@@ -37,10 +37,9 @@ kube_deploy:
-
kubectl config set-credentials admin --username="${KUBE_USERNAME}" --password="${KUBE_PASSWORD}"
-
kubectl config set-credentials admin --username="${KUBE_USERNAME}" --password="${KUBE_PASSWORD}"
-
kubectl config set-context default --cluster=cloudl --user=${KUBE_USERNAME}
-
kubectl config set-context default --cluster=cloudl --user=${KUBE_USERNAME}
-
kubectl config use-context default
-
kubectl config use-context default
-
cd k8s
# - cd k8s
-
kubectl create -f cloudl-client-service.yml
# - kubectl create -f cloudl-client-service.yml
-
kubectl create -f cloudl-client-deployment.yml
# - kubectl create -f cloudl-client-deployment.yml
-
kubectl get pods
# - kubectl get pods
-
kubectl get svc
# - kubectl get svc
-
kubectl set image deployment/${CI_COMMIT_REF_NAME}-deployment ${CI_COMMIT_REF_NAME}=${CONTAINER_IMAGE}
# - kubectl set image deployment/${CI_COMMIT_REF_NAME}-deployment ${CI_COMMIT_REF_NAME}=kavinduchamiran/${CI_COMMIT_REF_NAME}:latest
\ No newline at end of file
\ No newline at end of file
nginx/nginx.conf
View file @
f8384b06
...
@@ -7,16 +7,16 @@ server {
...
@@ -7,16 +7,16 @@ server {
proxy_set_header
Connection
"upgrade"
;
proxy_set_header
Connection
"upgrade"
;
proxy_set_header
Host
$host
;
proxy_set_header
Host
$host
;
proxy_cache_bypass
$http_upgrade
;
proxy_cache_bypass
$http_upgrade
;
proxy_pass
http://cloudl-server-service:5000
/socket.io/
;
proxy_pass
http://cloudl-server-service:5000
;
}
}
location
/api/
{
location
/api/
users
{
proxy_http_version
1
.1
;
proxy_http_version
1
.1
;
proxy_set_header
Upgrade
$http_upgrade
;
proxy_set_header
Upgrade
$http_upgrade
;
proxy_set_header
Connection
"upgrade"
;
proxy_set_header
Connection
"upgrade"
;
proxy_set_header
Host
$host
;
proxy_set_header
Host
$host
;
proxy_cache_bypass
$http_upgrade
;
proxy_cache_bypass
$http_upgrade
;
proxy_pass
http://cloudl-server-service:5000/api/
;
proxy_pass
http://cloudl-server-service:5000/api/
users
;
}
}
location
/
{
location
/
{
...
...
src/containers/Home.js
View file @
f8384b06
...
@@ -9,7 +9,7 @@ class Home extends Component {
...
@@ -9,7 +9,7 @@ class Home extends Component {
<
div
className
=
"row"
>
<
div
className
=
"row"
>
<
div
className
=
"col s12 center-align"
>
<
div
className
=
"col s12 center-align"
>
<
h4
>
<
h4
>
The
<
b
>
online
<
/b> file downloader
2
The
<
b
>
online
<
/b> file downloader
3
<
/h4
>
<
/h4
>
<
p
className
=
"flow-text grey-text text-darken-1"
>
<
p
className
=
"flow-text grey-text text-darken-1"
>
Let
me
handle
your
slow
downloads
and
torrents
!
Let
me
handle
your
slow
downloads
and
torrents
!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment