mirror of
https://github.com/penpot/penpot.git
synced 2025-12-23 22:48:40 -05:00
🎉 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. 🐳 Gitpod docker image with Clojure Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🐳 Fix path to GitPod docker image Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🐳 Use sudo for setup Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🐳 More sudo commands Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🐳 Remove penpot user in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🐳 Brew install redis Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🔧 Init DB and penpot user Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🐳 Switch user for installs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🔧 Improve startup and DB init Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🔧 Configure gitpod tasks Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🔧 Configure gitpod ports Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🔧 Setup for mailhog Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🐛 Use perms to install mailhog 🐛 Install mailhog before workspace creation Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io> 🔧 Manage signed commits Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🔧 Configure tasks to wait on ports 🔧 Improve Gitpod config Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> ⬆️ Upgrade deps in gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🎨 Use absolute path for cd Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🔧 Add nginx conf Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🔧 Fix nginx config for gitpod Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🔧 Ensure nginx listens all incoming 🎨 Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🎨 Change layers order Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🔧 Set Nginx logs permissions Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com> 🐛 Use sudo to create nginx logs Signed-off-by: madmath03 <mb.mathieu.brunot@gmail.com>
This commit is contained in:
84
.gitpod.yml
Normal file
84
.gitpod.yml
Normal file
@@ -0,0 +1,84 @@
|
||||
image:
|
||||
file: docker/gitpod/Dockerfile
|
||||
|
||||
ports:
|
||||
# nginx
|
||||
- port: 3449
|
||||
onOpen: open-preview
|
||||
# frontend nREPL
|
||||
- port: 3447
|
||||
onOpen: ignore
|
||||
visibility: private
|
||||
# frontend shadow server
|
||||
- port: 3448
|
||||
onOpen: notify
|
||||
visibility: private
|
||||
- port: 6060
|
||||
- port: 9090
|
||||
# exporter shadow server
|
||||
- port: 9630
|
||||
onOpen: notify
|
||||
visibility: private
|
||||
# exporter http server
|
||||
- port: 6061
|
||||
onOpen: ignore
|
||||
# mailhog web interface
|
||||
- port: 8025
|
||||
onOpen: notify
|
||||
# mailhog postfix
|
||||
- port: 1025
|
||||
onOpen: ignore
|
||||
# postgres
|
||||
- port: 5432
|
||||
onOpen: ignore
|
||||
# redis
|
||||
- port: 6379
|
||||
onOpen: ignore
|
||||
# openldap
|
||||
- port: 389
|
||||
onOpen: ignore
|
||||
|
||||
tasks:
|
||||
# https://github.com/gitpod-io/gitpod/issues/666#issuecomment-534347856
|
||||
- before: >
|
||||
[[ ! -z ${GNUGPG} ]] &&
|
||||
cd ~ &&
|
||||
rm -rf .gnupg &&
|
||||
echo ${GNUGPG} | base64 -d | tar --no-same-owner -xzvf -
|
||||
name: signed terminal
|
||||
init: >
|
||||
[[ ! -z ${GNUGPG_KEY} ]] &&
|
||||
git config --global commit.gpgsign true &&
|
||||
git config --global user.signingkey ${GNUGPG_KEY}
|
||||
command: cd $GITPOD_REPO_ROOT
|
||||
|
||||
- init: yarn --cwd $GITPOD_REPO_ROOT/frontend/ install
|
||||
name: frontend shadow watch
|
||||
command: cd $GITPOD_REPO_ROOT/frontend/ && npx -y shadow-cljs watch main
|
||||
|
||||
- init: yarn --cwd $GITPOD_REPO_ROOT/exporter/ install
|
||||
name: exporter shadow watch
|
||||
command: gp await-port 3448 && cd $GITPOD_REPO_ROOT/exporter/ && npx -y shadow-cljs watch main
|
||||
|
||||
- name: exporter web server
|
||||
openMode: split-right
|
||||
command: gp await-port 9630 && cd $GITPOD_REPO_ROOT/exporter/ && ./scripts/wait-and-start.sh
|
||||
|
||||
- init: gp await-port 5432 && psql -f $GITPOD_REPO_ROOT/docker/gitpod/files/postgresql_init.sql
|
||||
name: backend
|
||||
command: cd $GITPOD_REPO_ROOT/backend/ && ./scripts/start-dev
|
||||
|
||||
- name: gulp
|
||||
command: gp await-port 3448 && cd $GITPOD_REPO_ROOT/frontend/ && npx -y gulp --theme=${PENPOT_THEME} watch
|
||||
|
||||
- name: redis
|
||||
command: redis-server
|
||||
|
||||
- before: go get github.com/mailhog/MailHog
|
||||
name: mailhog
|
||||
command: MailHog
|
||||
|
||||
- name: Nginx
|
||||
command: >
|
||||
nginx &&
|
||||
multitail /var/log/nginx/access.log -I /var/log/nginx/error.log
|
||||
Reference in New Issue
Block a user