Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update read.me #2

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM alpine:latest
RUN \
apk add --no-cache \
apache2 \
php7 \
php7-apache2 \
php7-mbstring \
git

WORKDIR /var/www/localhost/htdocs

RUN git clone https://github.com/denlulung/landing-page.git
RUN mv /var/www/localhost/htdocs/landing-page/* /var/www/localhost/htdocs/
RUN rm -rf /var/www/localhost/htdocs/landing-page

EXPOSE 80

CMD ["/usr/sbin/httpd", "-D", "FOREGROUND"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Example landing page sekolah devops cilsy
Example landing page sekolah devops cilsy - big project.
22 changes: 22 additions & 0 deletions deployment-production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: landingpage-production
namespace: production
labels:
app: landingpage
spec:
replicas: 3
selector:
matchLabels:
app: landingpage
template:
metadata:
labels:
app: landingpage
spec:
containers:
- name: landingpage
image: denlulung/landing-page:latest
ports:
- containerPort: 80
22 changes: 22 additions & 0 deletions deployment-staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: landingpage-staging
namespace: staging
labels:
app: landingpage
spec:
replicas: 3
selector:
matchLabels:
app: landingpage
template:
metadata:
labels:
app: landingpage
spec:
containers:
- name: landingpage
image: denlulung/landing-page:latest
ports:
- containerPort: 80
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-light fixed-top" id="mainNav">
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="#page-top">Tekkadan</a>
<a class="navbar-brand js-scroll-trigger" href="#page-top">Demo Big Project Tekkadan Sandbox</a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
Expand Down Expand Up @@ -59,7 +59,7 @@
<div class="row">
<div class="col-lg-10 mx-auto">
<h1 class="text-uppercase">
<strong>Buat Aplikasi Impianmu bersama kami</strong>
<strong>Saatnya Buat Aplikasi Impianmu bersama kami</strong>
</h1>
<hr>
</div>
Expand Down
6 changes: 6 additions & 0 deletions namespace-production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Namespace
apiVersion: v1
metadata:
name: production
labels:
name: production
6 changes: 6 additions & 0 deletions namespace-staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Namespace
apiVersion: v1
metadata:
name: staging
labels:
name: staging
14 changes: 14 additions & 0 deletions service-production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
kind: Service

apiVersion: v1
metadata:
name: landingpage-production
namespace: production
spec:
selector:

app: landingpage
ports:

- protocol: TCP

port: 80
targetPort: 80

nodePort: 30082
type: LoadBalancer
14 changes: 14 additions & 0 deletions service-staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
kind: Service

apiVersion: v1
metadata:
name: landingpage-staging
namespace: staging
spec:
selector:

app: landingpage
ports:

- protocol: TCP

port: 80
targetPort: 80

nodePort: 30090
type: LoadBalancer