Skip to content

Commit

Permalink
Merge pull request #12 from jff/jff-devcontainer
Browse files Browse the repository at this point in the history
Add dev container
  • Loading branch information
ritosilva authored Feb 7, 2024
2 parents cec81cf + 3bf5749 commit 58e9088
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .devcontainer/Dockerfile
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
5 changes: 5 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"build": { "dockerfile": ".devcontainer/Dockerfile",
"context": ".."
}
}

0 comments on commit 58e9088

Please sign in to comment.