mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 11:18:33 +02:00
🐳 Minor improvements on devenv docker image.
This commit is contained in:
parent
4a58a429d4
commit
dd4930e055
5 changed files with 35 additions and 89 deletions
|
@ -42,7 +42,6 @@ RUN set -ex; \
|
||||||
python \
|
python \
|
||||||
build-essential \
|
build-essential \
|
||||||
imagemagick \
|
imagemagick \
|
||||||
librsvg2-bin \
|
|
||||||
netpbm \
|
netpbm \
|
||||||
potrace \
|
potrace \
|
||||||
webp \
|
webp \
|
||||||
|
@ -94,17 +93,20 @@ RUN set -ex; \
|
||||||
rm -rf /var/lib/apt/lists/*;
|
rm -rf /var/lib/apt/lists/*;
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
mkdir -p /usr/share/man/man1; \
|
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/share/man/man7; \
|
mkdir -p /usr/lib/jvm/openjdk16; \
|
||||||
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add -; \
|
cd /usr/lib/jvm/openjdk16; \
|
||||||
echo "deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ focal main" >> /etc/apt/sources.list.d/adoptopenjdk.list; \
|
tar -xf /tmp/openjdk.tar.gz --strip-components=1; \
|
||||||
apt-get -qq update; \
|
rm -rf /tmp/openjdk.tar.gz;
|
||||||
apt-get -qqy install adoptopenjdk-15-hotspot; \
|
|
||||||
rm -rf /var/lib/apt/lists/*; \
|
ENV PATH="/usr/lib/jvm/openjdk16/bin:/usr/local/nodejs/bin:$PATH" \
|
||||||
wget "https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh"; \
|
JAVA_HOME=/usr/lib/jvm/openjdk16
|
||||||
chmod +x "linux-install-$CLOJURE_VERSION.sh"; \
|
|
||||||
"./linux-install-$CLOJURE_VERSION.sh"; \
|
RUN set -ex; \
|
||||||
rm -rf "linux-install-$CLOJURE_VERSION.sh"
|
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;
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -; \
|
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -; \
|
||||||
|
@ -113,24 +115,18 @@ RUN set -ex; \
|
||||||
apt-get -qqy install postgresql-client-13; \
|
apt-get -qqy install postgresql-client-13; \
|
||||||
rm -rf /var/lib/apt/lists/*;
|
rm -rf /var/lib/apt/lists/*;
|
||||||
|
|
||||||
COPY files/phantomjs-mock /usr/bin/phantomjs
|
|
||||||
COPY files/bashrc /root/.bashrc
|
|
||||||
COPY files/vimrc /root/.vimrc
|
|
||||||
COPY files/tmux.conf /root/.tmux.conf
|
|
||||||
|
|
||||||
WORKDIR /home
|
WORKDIR /home
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
mkdir -p /tmp/node; \
|
curl -LfsSo /tmp/nodejs.tar.xz https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-linux-x64.tar.xz; \
|
||||||
cd /tmp/node; \
|
mkdir -p /usr/local/nodejs; \
|
||||||
export PATH="$PATH:/usr/local/nodejs/bin"; \
|
cd /usr/local/nodejs; \
|
||||||
wget https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-linux-x64.tar.xz; \
|
tar -xf /tmp/nodejs.tar.xz --strip-components=1; \
|
||||||
tar xvf node-$NODE_VERSION-linux-x64.tar.xz; \
|
|
||||||
mv /tmp/node/node-$NODE_VERSION-linux-x64 /usr/local/nodejs; \
|
|
||||||
chown -R root /usr/local/nodejs; \
|
chown -R root /usr/local/nodejs; \
|
||||||
|
PATH="$PATH:/usr/local/nodejs/bin"; \
|
||||||
/usr/local/nodejs/bin/npm install -g yarn; \
|
/usr/local/nodejs/bin/npm install -g yarn; \
|
||||||
/usr/local/nodejs/bin/npm install -g svgo; \
|
/usr/local/nodejs/bin/npm install -g svgo; \
|
||||||
rm -rf /tmp/node;
|
rm -rf /tmp/nodejs.tar.xz;
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
cd /tmp; \
|
cd /tmp; \
|
||||||
|
@ -145,10 +141,15 @@ EXPOSE 3449
|
||||||
EXPOSE 6060
|
EXPOSE 6060
|
||||||
EXPOSE 9090
|
EXPOSE 9090
|
||||||
|
|
||||||
|
COPY files/phantomjs-mock /usr/bin/phantomjs
|
||||||
|
|
||||||
|
COPY files/bashrc /root/.bashrc
|
||||||
|
COPY files/vimrc /root/.vimrc
|
||||||
|
COPY files/tmux.conf /root/.tmux.conf
|
||||||
|
|
||||||
COPY files/start-tmux.sh /home/start-tmux.sh
|
COPY files/start-tmux.sh /home/start-tmux.sh
|
||||||
COPY files/entrypoint.sh /home/entrypoint.sh
|
COPY files/entrypoint.sh /home/entrypoint.sh
|
||||||
COPY files/init.sh /home/init.sh
|
COPY files/init.sh /home/init.sh
|
||||||
COPY files/bashrc /home/penpot/.bashrc
|
|
||||||
|
|
||||||
ENTRYPOINT ["/home/entrypoint.sh"]
|
ENTRYPOINT ["/home/entrypoint.sh"]
|
||||||
CMD ["/home/init.sh"]
|
CMD ["/home/init.sh"]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
export PATH=/usr/local/nodejs/bin:$PATH
|
export PATH=/usr/lib/jvm/openjdk16/bin:/usr/local/nodejs/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
|
||||||
|
|
||||||
alias l='ls --color -GFlh'
|
alias l='ls --color -GFlh'
|
||||||
alias rm='rm -r'
|
alias rm='rm -r'
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cp /root/.bashrc /home/penpot/.bashrc
|
||||||
|
cp /root/.vimrc /home/penpot/.vimrc
|
||||||
|
cp /root/.tmux.conf /home/penpot/.tmux.conf
|
||||||
|
chown -R penpot:users /home/penpot
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
nginx
|
nginx
|
||||||
tail -f /dev/null
|
tail -f /dev/null
|
||||||
|
|
|
@ -1,17 +1,13 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
sudo cp /root/.bashrc /home/penpot/.bashrc
|
|
||||||
sudo cp /root/.vimrc /home/penpot/.vimrc
|
|
||||||
sudo cp /root/.tmux.conf /home/penpot/.tmux.conf
|
|
||||||
|
|
||||||
source /home/penpot/.bashrc
|
|
||||||
sudo chown penpot:users /home/penpot
|
sudo chown penpot:users /home/penpot
|
||||||
|
|
||||||
cd ~;
|
cd ~;
|
||||||
|
|
||||||
set -e;
|
|
||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
|
|
||||||
|
set -e;
|
||||||
|
|
||||||
echo "[start-tmux.sh] Installing node dependencies"
|
echo "[start-tmux.sh] Installing node dependencies"
|
||||||
pushd ~/penpot/frontend/
|
pushd ~/penpot/frontend/
|
||||||
yarn install
|
yarn install
|
||||||
|
@ -43,6 +39,6 @@ tmux send-keys -t penpot './scripts/start-dev' enter
|
||||||
tmux rename-window -t penpot:0 'gulp'
|
tmux rename-window -t penpot:0 'gulp'
|
||||||
tmux select-window -t penpot:0
|
tmux select-window -t penpot:0
|
||||||
tmux send-keys -t penpot 'cd penpot/frontend' enter C-l
|
tmux send-keys -t penpot 'cd penpot/frontend' enter C-l
|
||||||
tmux send-keys -t penpot 'npx gulp --theme=${PENPOT_THEME} watch' enter
|
tmux send-keys -t penpot 'npx gulp watch' enter
|
||||||
|
|
||||||
tmux -2 attach-session -t penpot
|
tmux -2 attach-session -t penpot
|
||||||
|
|
|
@ -1,56 +0,0 @@
|
||||||
#!/usr/bin/env zsh
|
|
||||||
|
|
||||||
export EDITOR=vim
|
|
||||||
|
|
||||||
bindkey "^[[3~" delete-char
|
|
||||||
bindkey "^[3;5~" delete-char
|
|
||||||
bindkey '^R' history-incremental-search-backward
|
|
||||||
|
|
||||||
bindkey -e
|
|
||||||
|
|
||||||
autoload -U promptinit
|
|
||||||
promptinit
|
|
||||||
prompt suse
|
|
||||||
|
|
||||||
#------------------------------
|
|
||||||
## Comp stuff
|
|
||||||
##------------------------------
|
|
||||||
zmodload zsh/complist
|
|
||||||
autoload -Uz compinit
|
|
||||||
compinit
|
|
||||||
|
|
||||||
#------------------------------
|
|
||||||
# Alias stuff
|
|
||||||
#------------------------------
|
|
||||||
alias cp='cp -r'
|
|
||||||
alias ls='ls -F'
|
|
||||||
alias l='ls -Flha'
|
|
||||||
alias rm='rm -r'
|
|
||||||
alias ls='ls --color -F'
|
|
||||||
alias lsd='ls -d *(/)'
|
|
||||||
alias lsf='ls -h *(.)'
|
|
||||||
|
|
||||||
#-----------------
|
|
||||||
# Options
|
|
||||||
#-----------------
|
|
||||||
|
|
||||||
setopt AUTO_CD # implicate cd for non-commands
|
|
||||||
setopt CORRECT_ALL # correct spelling
|
|
||||||
setopt COMPLETE_IN_WORD # complete commands anywhere in the word
|
|
||||||
setopt NOTIFY # Notify when jobs finish
|
|
||||||
setopt BASH_AUTO_LIST # Autolist options on repeition of ambiguous args
|
|
||||||
setopt AUTO_PUSHD # Push dirs into history
|
|
||||||
setopt MULTIOS # Allow Multiple pipes
|
|
||||||
setopt MAGIC_EQUAL_SUBST # Expand inside equals
|
|
||||||
setopt EXTENDED_GLOB
|
|
||||||
setopt NOBEEP
|
|
||||||
setopt INC_APPEND_HISTORY
|
|
||||||
export HISTSIZE=100000
|
|
||||||
export SAVEHIST=100000
|
|
||||||
export HISTFILE=~/local/.zhistory
|
|
||||||
setopt hist_ignore_all_dups
|
|
||||||
setopt hist_ignore_space
|
|
||||||
|
|
||||||
export PATH=$HOME/.local/bin:$PATH
|
|
||||||
export NVM_DIR="$HOME/.nvm"
|
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
|
|
Loading…
Add table
Add a link
Reference in a new issue