mirror of
https://github.com/penpot/penpot.git
synced 2026-05-13 20:13:58 +00:00
Serena provides useful tools for the agentic workflow for penpot. The following additional extensions are added: 1. uv and Serena installation, including a suitable serena_config.yml, are added to the devenv docker image 2. Serena configuration options are set via env vars and flags in manage.sh 3. run-devenv can now take -e flags which it forwards to docker exec GitHub #9315
31 lines
837 B
Bash
Executable File
31 lines
837 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
EMSDK_QUIET=1 . /opt/emsdk/emsdk_env.sh;
|
|
|
|
usermod -u ${EXTERNAL_UID:-1000} penpot;
|
|
|
|
cp /root/.bashrc /home/penpot/.bashrc
|
|
cp /root/.vimrc /home/penpot/.vimrc
|
|
cp /root/.tmux.conf /home/penpot/.tmux.conf
|
|
|
|
# Seed SERENA_HOME with default config on first run
|
|
mkdir -p ${SERENA_HOME}
|
|
if [ ! -f "${SERENA_HOME}/serena_config.yml" ]; then
|
|
cp /home/serena_config.yml "${SERENA_HOME}/serena_config.yml"
|
|
fi
|
|
chown -R penpot:users ${SERENA_HOME}
|
|
|
|
chown penpot:users /home/penpot
|
|
# we need to be able to install rust-analyzer and possibly other dependencies with rustup
|
|
chown -R penpot:ubuntu /opt/rustup
|
|
|
|
rsync -ar --chown=penpot:users /opt/cargo/ /home/penpot/.cargo/
|
|
|
|
export JAVA_OPTS="-Djava.net.preferIPv4Stack=true"
|
|
export PATH="/home/penpot/.cargo/bin:$PATH"
|
|
export CARGO_HOME="/home/penpot/.cargo"
|
|
|
|
exec "$@"
|