Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Add docker file for client and docker-compose for local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrwhite committed May 26, 2018
1 parent c459af7 commit b207d41
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
15 changes: 15 additions & 0 deletions client/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM golang:1.10.2

LABEL maintainer="james.white@minicron.com"

WORKDIR /go/src/github.com/jamesrwhite/minicron/client

COPY . .

ARG GOOS=linux
ARG GOARCH=amd64

RUN GOOS=${GOOS} GOARCH=${GOARCH} go build -o minicron .
RUN cp ./minicron /usr/local/bin/minicron

ENTRYPOINT ["minicron"]
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: '3'

services:
server:
build:
context: ./server
ports:
- "9292:9292"

database:
image: mysql:5.7.19
command: mysqld
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
MYSQL_DATABASE: minicron
ports:
- "33306:3306"
volumes:
- minicron-mysql:/var/lib/mysql

volumes:
minicron-mysql:
1 change: 0 additions & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM ruby:2.4.1

MAINTAINER James White <james.white@minicron.com>
LABEL maintainer="james.white@minicron.com"

WORKDIR /usr/src/app
Expand Down

0 comments on commit b207d41

Please sign in to comment.