-
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
1,153 additions
and
63 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,39 @@ | ||
FROM asciidoctor/docker-asciidoctor:latest | ||
FROM erlang:27 | ||
|
||
RUN apk add --no-cache\ | ||
git\ | ||
rsync\ | ||
erlang | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN git config --global --add safe.directory /documents | ||
WORKDIR /documents | ||
CMD ["make"] | ||
# Install dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
gcc \ | ||
rsync \ | ||
postgresql \ | ||
postgresql-contrib \ | ||
wget \ | ||
curl \ | ||
make \ | ||
build-essential \ | ||
ruby \ | ||
ruby-dev \ | ||
asciidoctor \ | ||
&& apt-get clean | ||
|
||
# Install rebar3 | ||
RUN git clone https://github.com/erlang/rebar3.git && \ | ||
cd rebar3 && \ | ||
./bootstrap && \ | ||
./rebar3 local install | ||
|
||
# Set environment variable for Erlang shell history | ||
ENV ERL_AFLAGS "-kernel shell_history enabled" | ||
|
||
# Initialize PostgreSQL database for examples | ||
USER postgres | ||
RUN /etc/init.d/postgresql start && \ | ||
psql --command "CREATE USER myuser WITH SUPERUSER PASSWORD 'mypassword';" && \ | ||
createdb -O myuser mydb | ||
|
||
USER root | ||
|
||
# Set the default command to start PostgreSQL and keep the container running | ||
CMD service postgresql start && tail -f /var/lib/postgresql/data/logfile |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
{ | ||
"name": "BeamBook Dev Container", | ||
"dockerFile": "Dockerfile", | ||
|
||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-vscode.cpptools", | ||
"ms-python.python", | ||
"rebornix.Ruby" | ||
] | ||
}, | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
} | ||
"name": "BeamBook Dev Container", | ||
"dockerFile": "Dockerfile", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"asciidoctor.asciidoctor-vscode", | ||
"github.copilot", | ||
"github.copilot-chat", | ||
"ms-azuretools.vscode-docker", | ||
"ms-python.debugpy", | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"ms-vscode.cmake-tools", | ||
"ms-vscode.cpptools", | ||
"ms-vscode.cpptools-extension-pack", | ||
"ms-vscode.cpptools-themes", | ||
"ms-vscode.makefile-tools", | ||
"pgourlain.erlang", | ||
"rebornix.ruby", | ||
"twxs.cmake", | ||
"wingrunr21.vscode-ruby", | ||
] | ||
}, | ||
"postCreateCommand": ". /workspace/venv/bin/activate && pip install -r requirements.txt" | ||
} | ||
|
||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
} | ||
}, | ||
"postCreateCommand": ". /workspace/venv/bin/activate && pip install -r requirements.txt" | ||
} |
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
Oops, something went wrong.