Skip to content

Commit

Permalink
Add dockerfile and k8s yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
teeratpitakrat committed Mar 20, 2017
1 parent d79521d commit ab63a37
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM alpine

ADD config.toml /config.toml
#ADD https://github.com/teeratpitakrat/hora/releases/download/v0.0.1/hora /hora
ADD hora /hora
RUN chmod 700 /hora

EXPOSE 8080
CMD ["/hora"]
36 changes: 36 additions & 0 deletions k8s-hora.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: v1
kind: Service
metadata:
name: hora
labels:
name: hora
spec:
type: NodePort
ports:
- port: 8080
name: http
nodePort: 31100
selector:
name: hora
---
apiVersion: v1
kind: ReplicationController
metadata:
name: hora
labels:
name: hora
spec:
replicas: 1
selector:
name: hora
template:
metadata:
labels:
name: hora
spec:
containers:
- name: hora
image: teeratpitakrat/hora:0.0.1
imagePullPolicy: Always
ports:
- containerPort: 8080

0 comments on commit ab63a37

Please sign in to comment.