Skip to content

Commit 6c48259

Browse files
committed
ci: testing
1 parent aa7439e commit 6c48259

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
services:
2+
hex_tiny:
3+
image: camatcode/hex_tiny
4+
container_name: hex_tiny
5+
ports:
6+
# {port you want hex tiny to run on}:8000
7+
- 8000:8000
8+
restart: unless-stopped

docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
FROM elixir:1.18-alpine AS build
2-
ADD docker/entrypoint.sh /
32
RUN apk update && apk add openssl
43
RUN mkdir /acme
4+
ADD docker/entrypoint.sh /acme/entrypoint.sh
55
RUN cd /acme && openssl genrsa -out private_key.pem
66
RUN cd /acme && mkdir public && mix local.hex --force && mix hex.registry build public --name=acme --private-key=private_key.pem
77
RUN cd /acme && mix hex.package fetch decimal 2.0.0 && mv /acme/decimal-2.0.0.tar /acme/public/tarballs/ && mix hex.registry build public --name=acme --private-key=private_key.pem
88

99
FROM elixir:1.18-alpine
1010

1111
COPY --from=build /acme /acme
12-
EXPOSE 4000
12+
EXPOSE 8000
1313

14-
ENTRYPOINT ["/entrypoint.sh"]
14+
ENTRYPOINT ["/acme/entrypoint.sh"]

docker/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
cd /acme
3-
erl -s inets -eval 'inets:start(httpd,[{port,8000},{server_name,"localhost"},{server_root,"."},{document_root,"public"}]).'
3+
erl -noshell -s inets -eval 'inets:start(httpd,[{port,8000},{server_name,"localhost"},{server_root,"."},{document_root,"public"}]).'

0 commit comments

Comments
 (0)