Browse Source

Add docker-compose for development environment

pull/340/head
Dan Schaper 8 years ago
parent
commit
fb0da36495
No known key found for this signature in database GPG Key ID: FFF1A1AD0113C344
3 changed files with 8 additions and 12 deletions
  1. +5
    -3
      Dockerfile.dev
  2. +3
    -9
      docker-compose.yml
  3. +0
    -0
      tests/test.bats

+ 5
- 3
Dockerfile.dev View File

@ -5,11 +5,13 @@ ENV PATH=/bin:$PATH
WORKDIR /ssl
RUN apk --no-cache --virtual .run-depends add \
bash \
curl \
drill \
openssl
#COPY getsslD /bin/getsslD
COPY .bats-core/ /opt/bats/
ENTRYPOINT [ "getsslD" ]
CMD [ "--help" ]
RUN ln -s /opt/bats/libexec/bats /usr/sbin/bats
ENTRYPOINT ["/bin/ash"]

+ 3
- 9
docker-compose.yml View File

@ -4,15 +4,9 @@ services:
development:
build:
context: .
dockerfile: Dockerfile.dev
working_dir: /opt/src/getssld
volumes:
- .:/opt/src/getssld
- /tmp/testing:/ssl
- ./tests:/code
entrypoint: /bin/ash
bats:
build:
context: ../../bats-core/
image: bats:latest
volumes:
- .:/code
command: /code/test/bats.sh

test/bats.sh → tests/test.bats View File


Loading…
Cancel
Save