0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00
penpot/docker/gitpod/Dockerfile

123 lines
3.4 KiB
Text
Raw Normal View History

:tada: Fully automate dev setup with Gitpod. This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. :whale: Gitpod docker image with Clojure Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Fix path to GitPod docker image Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Use sudo for setup Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: More sudo commands Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Remove penpot user in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Brew install redis Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Init DB and penpot user Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Switch user for installs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Improve startup and DB init Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod tasks Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod ports Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Setup for mailhog Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use perms to install mailhog :bug: Install mailhog before workspace creation Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io> :wrench: Manage signed commits Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure tasks to wait on ports :wrench: Improve Gitpod config Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :arrow_up: Upgrade deps in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Use absolute path for cd Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Add nginx conf Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Fix nginx config for gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Ensure nginx listens all incoming :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Set Nginx logs permissions Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use sudo to create nginx logs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com>
2021-02-28 19:09:42 -05:00
FROM gitpod/workspace-postgres
# Install custom tools, runtimes, etc.
# For example "bastet", a command-line tetris clone:
# RUN brew install bastet
#
# More information: https://www.gitpod.io/docs/config-docker/
RUN set -ex; \
brew install redis; \
brew install imagemagick; \
brew install ghostscript; \
:tada: Fully automate dev setup with Gitpod. This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. :whale: Gitpod docker image with Clojure Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Fix path to GitPod docker image Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Use sudo for setup Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: More sudo commands Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Remove penpot user in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Brew install redis Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Init DB and penpot user Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Switch user for installs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Improve startup and DB init Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod tasks Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod ports Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Setup for mailhog Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use perms to install mailhog :bug: Install mailhog before workspace creation Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io> :wrench: Manage signed commits Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure tasks to wait on ports :wrench: Improve Gitpod config Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :arrow_up: Upgrade deps in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Use absolute path for cd Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Add nginx conf Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Fix nginx config for gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Ensure nginx listens all incoming :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Set Nginx logs permissions Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use sudo to create nginx logs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com>
2021-02-28 19:09:42 -05:00
brew install mailhog; \
brew install openldap; \
2022-10-27 04:36:32 -05:00
brew install poppler; \
:tada: Fully automate dev setup with Gitpod. This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. :whale: Gitpod docker image with Clojure Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Fix path to GitPod docker image Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Use sudo for setup Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: More sudo commands Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Remove penpot user in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Brew install redis Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Init DB and penpot user Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Switch user for installs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Improve startup and DB init Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod tasks Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod ports Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Setup for mailhog Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use perms to install mailhog :bug: Install mailhog before workspace creation Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io> :wrench: Manage signed commits Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure tasks to wait on ports :wrench: Improve Gitpod config Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :arrow_up: Upgrade deps in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Use absolute path for cd Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Add nginx conf Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Fix nginx config for gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Ensure nginx listens all incoming :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Set Nginx logs permissions Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use sudo to create nginx logs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com>
2021-02-28 19:09:42 -05:00
sudo mkdir -p /var/log/nginx; \
sudo chown gitpod:gitpod /var/log/nginx
2022-10-27 04:36:32 -05:00
COPY files/nginx.conf /etc/nginx/nginx.conf
COPY files/nginx-mime.types /etc/nginx/mime.types
:tada: Fully automate dev setup with Gitpod. This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. :whale: Gitpod docker image with Clojure Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Fix path to GitPod docker image Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Use sudo for setup Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: More sudo commands Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Remove penpot user in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Brew install redis Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Init DB and penpot user Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Switch user for installs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Improve startup and DB init Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod tasks Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod ports Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Setup for mailhog Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use perms to install mailhog :bug: Install mailhog before workspace creation Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io> :wrench: Manage signed commits Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure tasks to wait on ports :wrench: Improve Gitpod config Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :arrow_up: Upgrade deps in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Use absolute path for cd Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Add nginx conf Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Fix nginx config for gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Ensure nginx listens all incoming :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Set Nginx logs permissions Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use sudo to create nginx logs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com>
2021-02-28 19:09:42 -05:00
USER root
2022-10-27 04:36:32 -05:00
ENV NODE_VERSION=v16.17.0 \
CLOJURE_VERSION=1.11.1.1165 \
CLJKONDO_VERSION=2022.09.08 \
BABASHKA_VERSION=0.9.162 \
:tada: Fully automate dev setup with Gitpod. This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. :whale: Gitpod docker image with Clojure Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Fix path to GitPod docker image Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Use sudo for setup Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: More sudo commands Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Remove penpot user in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Brew install redis Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Init DB and penpot user Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Switch user for installs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Improve startup and DB init Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod tasks Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod ports Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Setup for mailhog Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use perms to install mailhog :bug: Install mailhog before workspace creation Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io> :wrench: Manage signed commits Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure tasks to wait on ports :wrench: Improve Gitpod config Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :arrow_up: Upgrade deps in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Use absolute path for cd Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Add nginx conf Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Fix nginx config for gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Ensure nginx listens all incoming :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Set Nginx logs permissions Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use sudo to create nginx logs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com>
2021-02-28 19:09:42 -05:00
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8
RUN set -ex; \
useradd -m -g users -s /bin/bash penpot; \
passwd penpot -d; \
echo "penpot ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
RUN set -ex; \
apt-get -qq update; \
apt-get -qqy install \
gconf-service \
libasound2 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libcairo2 \
libcups2 \
libdbus-1-3 \
libexpat1 \
libfontconfig1 \
libgcc1 \
libgconf-2-4 \
libgdk-pixbuf2.0-0 \
libglib2.0-0 \
libgtk-3-0 \
libnspr4 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libx11-6 \
libx11-xcb1 \
libxcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxi6 \
libxrandr2 \
libxrender1 \
libxshmfence1 \
:tada: Fully automate dev setup with Gitpod. This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. :whale: Gitpod docker image with Clojure Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Fix path to GitPod docker image Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Use sudo for setup Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: More sudo commands Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Remove penpot user in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Brew install redis Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Init DB and penpot user Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Switch user for installs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Improve startup and DB init Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod tasks Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod ports Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Setup for mailhog Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use perms to install mailhog :bug: Install mailhog before workspace creation Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io> :wrench: Manage signed commits Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure tasks to wait on ports :wrench: Improve Gitpod config Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :arrow_up: Upgrade deps in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Use absolute path for cd Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Add nginx conf Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Fix nginx config for gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Ensure nginx listens all incoming :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Set Nginx logs permissions Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use sudo to create nginx logs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com>
2021-02-28 19:09:42 -05:00
libxss1 \
libxtst6 \
fonts-liberation \
libappindicator1 \
libnss3 \
libgbm1 \
; \
rm -rf /var/lib/apt/lists/*;
RUN set -ex; \
curl -LfsSo /tmp/openjdk.tar.gz https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16%2B36/OpenJDK16-jdk_x64_linux_hotspot_16_36.tar.gz; \
mkdir -p /usr/lib/jvm/openjdk16; \
cd /usr/lib/jvm/openjdk16; \
tar -xf /tmp/openjdk.tar.gz --strip-components=1; \
rm -rf /tmp/openjdk.tar.gz;
:tada: Fully automate dev setup with Gitpod. This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. :whale: Gitpod docker image with Clojure Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Fix path to GitPod docker image Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Use sudo for setup Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: More sudo commands Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Remove penpot user in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Brew install redis Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Init DB and penpot user Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Switch user for installs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Improve startup and DB init Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod tasks Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod ports Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Setup for mailhog Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use perms to install mailhog :bug: Install mailhog before workspace creation Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io> :wrench: Manage signed commits Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure tasks to wait on ports :wrench: Improve Gitpod config Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :arrow_up: Upgrade deps in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Use absolute path for cd Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Add nginx conf Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Fix nginx config for gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Ensure nginx listens all incoming :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Set Nginx logs permissions Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use sudo to create nginx logs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com>
2021-02-28 19:09:42 -05:00
# Install clojure cli
RUN set -ex; \
curl -LfsSo /tmp/clojure.sh https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh; \
chmod +x /tmp/clojure.sh; \
/tmp/clojure.sh; \
rm -rf /tmp/clojure.sh;
# Install clj-kondo
RUN set -ex; \
curl -LfsSo /tmp/clj-kondo.zip https://github.com/borkdude/clj-kondo/releases/download/v$CLJKONDO_VERSION/clj-kondo-$CLJKONDO_VERSION-linux-amd64.zip; \
cd /usr/local/bin; \
unzip /tmp/clj-kondo.zip; \
rm /tmp/clj-kondo.zip;
# Install babashka
:tada: Fully automate dev setup with Gitpod. This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. :whale: Gitpod docker image with Clojure Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Fix path to GitPod docker image Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Use sudo for setup Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: More sudo commands Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Remove penpot user in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Brew install redis Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Init DB and penpot user Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Switch user for installs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Improve startup and DB init Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod tasks Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod ports Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Setup for mailhog Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use perms to install mailhog :bug: Install mailhog before workspace creation Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io> :wrench: Manage signed commits Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure tasks to wait on ports :wrench: Improve Gitpod config Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :arrow_up: Upgrade deps in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Use absolute path for cd Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Add nginx conf Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Fix nginx config for gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Ensure nginx listens all incoming :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Set Nginx logs permissions Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use sudo to create nginx logs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com>
2021-02-28 19:09:42 -05:00
RUN set -ex; \
cd /tmp; \
curl -LfsSo /tmp/babashka.tar.gz https://github.com/babashka/babashka/releases/download/v$BABASHKA_VERSION/babashka-$BABASHKA_VERSION-linux-amd64.tar.gz; \
cd /usr/local/bin; \
tar -xf /tmp/babashka.tar.gz; \
rm -rf /tmp/babashka.tar.gz;
:tada: Fully automate dev setup with Gitpod. This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. :whale: Gitpod docker image with Clojure Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Fix path to GitPod docker image Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Use sudo for setup Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: More sudo commands Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Remove penpot user in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Brew install redis Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Init DB and penpot user Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Switch user for installs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Improve startup and DB init Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod tasks Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod ports Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Setup for mailhog Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use perms to install mailhog :bug: Install mailhog before workspace creation Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io> :wrench: Manage signed commits Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure tasks to wait on ports :wrench: Improve Gitpod config Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :arrow_up: Upgrade deps in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Use absolute path for cd Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Add nginx conf Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Fix nginx config for gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Ensure nginx listens all incoming :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Set Nginx logs permissions Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use sudo to create nginx logs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com>
2021-02-28 19:09:42 -05:00
USER gitpod
ENV PATH="/usr/lib/jvm/openjdk16/bin:/usr/local/nodejs/bin:$PATH" \
JAVA_HOME=/usr/lib/jvm/openjdk16 \
PENPOT_SMTP_ENABLED=true \
:tada: Fully automate dev setup with Gitpod. This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. :whale: Gitpod docker image with Clojure Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Fix path to GitPod docker image Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Use sudo for setup Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: More sudo commands Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Remove penpot user in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Brew install redis Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Init DB and penpot user Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Switch user for installs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Improve startup and DB init Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod tasks Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod ports Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Setup for mailhog Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use perms to install mailhog :bug: Install mailhog before workspace creation Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io> :wrench: Manage signed commits Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure tasks to wait on ports :wrench: Improve Gitpod config Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :arrow_up: Upgrade deps in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Use absolute path for cd Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Add nginx conf Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Fix nginx config for gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Ensure nginx listens all incoming :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Set Nginx logs permissions Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use sudo to create nginx logs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com>
2021-02-28 19:09:42 -05:00
PENPOT_SMTP_HOST=localhost \
PENPOT_SMTP_PORT=1025 \
PENPOT_SMTP_USER= \
PENPOT_SMTP_PASSWORD= \
PENPOT_SMTP_SSL=false \
PENPOT_SMTP_TLS=false \
PENPOT_SMTP_DEFAULT_REPLY_TO=no-reply@example.com \
PENPOT_SMTP_DEFAULT_FROM=no-reply@example.com \
2022-10-27 04:36:32 -05:00
PENPOT_DATABASE_URI="postgresql://localhost/penpot" \
PENPOT_REDIS_URI="redis://localhost/0"
:tada: Fully automate dev setup with Gitpod. This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. :whale: Gitpod docker image with Clojure Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Fix path to GitPod docker image Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Use sudo for setup Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: More sudo commands Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Remove penpot user in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Brew install redis Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Init DB and penpot user Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :whale: Switch user for installs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Improve startup and DB init Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod tasks Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure gitpod ports Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Setup for mailhog Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use perms to install mailhog :bug: Install mailhog before workspace creation Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io> :wrench: Manage signed commits Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Configure tasks to wait on ports :wrench: Improve Gitpod config Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :arrow_up: Upgrade deps in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Use absolute path for cd Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Add nginx conf Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Fix nginx config for gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Ensure nginx listens all incoming :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :art: Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :wrench: Set Nginx logs permissions Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> :bug: Use sudo to create nginx logs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com>
2021-02-28 19:09:42 -05:00
# TODO Retrieve OpenLDAP from rroemhild/docker-test-openldap