mirror of
https://github.com/gmemstr/pogo.git
synced 2024-09-20 01:31:09 +01:00
Testing new dockerfile
This commit is contained in:
parent
23cc4fa5d0
commit
d4e8fdd93e
|
@ -26,7 +26,7 @@ matrix:
|
||||||
script:
|
script:
|
||||||
- set -e
|
- set -e
|
||||||
- docker build -t gmemstr/pogo .
|
- docker build -t gmemstr/pogo .
|
||||||
- docker run -d --rm --name test -p 8000:8000 gmemstre/pogo
|
- docker run -d --rm --name test -p 8000:8000 gmemstr/pogo
|
||||||
- sleep 10
|
- sleep 10
|
||||||
- docker ps | grep -q pogo
|
- docker ps | grep -q pogo
|
||||||
- set +e
|
- set +e
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
FROM golang:latest
|
FROM golang:latest
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /POGO
|
WORKDIR %GOPATH%/src/POGO
|
||||||
|
|
||||||
# Add source to container so we can build
|
# Add source to container so we can build
|
||||||
ADD . /POGO
|
ADD . %GOPATH%/src/POGO
|
||||||
|
|
||||||
# 1. Install make and dependencies
|
# 1. Install make and dependencies
|
||||||
# 2. Install Go dependencies
|
# 2. Install Go dependencies
|
||||||
|
@ -13,7 +13,8 @@ ADD . /POGO
|
||||||
# 4. List directory structure (for debugging really)\
|
# 4. List directory structure (for debugging really)\
|
||||||
# 5. Make empty podcast direcory
|
# 5. Make empty podcast direcory
|
||||||
# 6. Create empty feed files
|
# 6. Create empty feed files
|
||||||
RUN godep restore && \
|
RUN go get godep && \
|
||||||
|
godep restore && \
|
||||||
make linux && chmod +x pogoapp && \
|
make linux && chmod +x pogoapp && \
|
||||||
ls -al && \
|
ls -al && \
|
||||||
mkdir podcasts && \
|
mkdir podcasts && \
|
||||||
|
|
Loading…
Reference in a new issue