-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from jff/jff-devcontainer
Add dev container
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ENV TZ=Europe/Lisbon | ||
RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ | ||
apt update -y && apt upgrade -y && \ | ||
apt install -y --no-install-recommends openjdk-17-jdk postgresql postgresql-client maven gawk wget python2 sudo git && \ | ||
apt install -y --no-install-recommends libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb && \ | ||
apt install -y git && \ | ||
wget -O - https://deb.nodesource.com/setup_16.x | bash - && apt install -y nodejs && \ | ||
/etc/init.d/postgresql start && \ | ||
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';" && \ | ||
sudo -u postgres psql -c "CREATE DATABASE hedb;" && \ | ||
wget -O /bin/cover2cover.py https://raw.githubusercontent.com/rix0rrr/cover2cover/master/cover2cover.py && \ | ||
apt autoremove -y && apt-get autoclean && apt clean |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"build": { "dockerfile": ".devcontainer/Dockerfile", | ||
"context": ".." | ||
} | ||
} |