Skip to content
Permalink
Browse files

build docker image

  • Loading branch information...
mlabouardy committed Apr 27, 2019
1 parent 41e9206 commit 58435f0a02e30093e9fb8ffb853402a63423a033
Showing with 12 additions and 8 deletions.
  1. +4 −6 Dockerfile
  2. +1 −1 LICENSE
  3. +7 −1 README.md
@@ -1,16 +1,14 @@
FROM alpine
FROM alpine:3.9.3
MAINTAINER mlabouardy <mohamed@labouardy.com>

ENV VERSION 2.0.0
ENV PORT 3000
ENV DURATION 30
ENV AWS_ACCESS_KEY_ID access
ENV AWS_SECRET_ACCESS_KEY secret
ENV AWS_DEFAULT_REGION us-east-1

RUN apk update && apk add curl
RUN curl -L https://s3.us-east-1.amazonaws.com/komiser/1.0.0/linux/komiser -o /usr/bin/komiser && \
RUN curl -L https://s3.us-east-1.amazonaws.com/komiser/$VERSION/linux/komiser -o /usr/bin/komiser && \
chmod +x /usr/bin/komiser && \
mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2

EXPOSE $PORT
ENTRYPOINT komiser start --port $PORT --duration $DURATION
ENTRYPOINT komiser start --port $PORT
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 LABOUARDY Mohamed
Copyright (c) 2018 Komiser

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -42,6 +42,12 @@ wget https://s3.us-east-1.amazonaws.com/komiser/2.0.0/osx/komiser

_Note_: make sure to add the execution permission to Komiser `chmod +x komiser`

### Docker:

````
docker run -d -p 3000:3000 --name komiser mlabouardy/komiser:2.0.0
```
## How to use
### AWS
@@ -58,7 +64,7 @@ wget https://s3.amazonaws.com/komiser/aws/policy.json
[default]
aws_access_key_id = <access key id>
aws_secret_access_key = <secret access key>
region = us-east-1
region = <AWS region>
```
* That should be it. Try out the following from your command prompt to start the server:

0 comments on commit 58435f0

Please sign in to comment.
You can’t perform that action at this time.