Created
June 28, 2021 19:09
-
-
Save haarts/93f58b2026f7148e3b13085658cb266f to your computer and use it in GitHub Desktop.
Dockerfile for running Lucky
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM docker.io/crystallang/crystal:1.0.0 | |
RUN apt update && apt install -y curl gpg postgresql-client tmux | |
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - | |
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarnkey.gpg >/dev/null | |
RUN echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | tee /etc/apt/sources.list.d/yarn.list | |
RUN apt update && \ | |
apt install -y nodejs yarn | |
ADD https://github.com/DarthSim/overmind/releases/download/v2.2.2/overmind-v2.2.2-linux-amd64.gz . | |
RUN gunzip overmind-v2.2.2-linux-amd64.gz && \ | |
chmod +x overmind-v2.2.2-linux-amd64 && \ | |
mv overmind-v2.2.2-linux-amd64 /usr/local/bin/overmind | |
RUN git clone https://github.com/luckyframework/lucky_cli && \ | |
cd lucky_cli && \ | |
git checkout v0.27.0 && \ | |
shards install && \ | |
crystal build src/lucky.cr && \ | |
mv lucky /usr/local/bin | |
CMD ["bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gist assumes you are running Postgres in an other container.
I happen to run Podman. The Postgres container is run with:
This creates a new pod for easy network sharing.
Run the container with Lucky in it. You can then go ahead there and run
lucky dev
.