finally builds
This commit is contained in:
parent
7e6ec689e8
commit
fdcc232bc2
16
Dockerfile
16
Dockerfile
@ -19,14 +19,24 @@ echo "deb $UBUNTU_MIRROR focal-security main universe restricted multiverse" >>
|
||||
echo "deb $UBUNTU_MIRROR focal-backports main universe restricted multiverse" >> /etc/apt/sources.list.new && \
|
||||
mv /etc/apt/sources.list.new /etc/apt/sources.list
|
||||
|
||||
|
||||
# we only install essential system packages here
|
||||
ARG SYSTEM_PACKAGES="locales build-essential ca-certificates git golang rsync runit software-properties-common"
|
||||
ARG ADDITIONAL_PKGS=""
|
||||
|
||||
RUN \
|
||||
apt update && \
|
||||
apt -y upgrade && \
|
||||
apt -y install $SYSTEM_PACKAGES && \
|
||||
apt -y install \
|
||||
$ADDITIONAL_PKGS \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
daemontools \
|
||||
git \
|
||||
golang \
|
||||
locales \
|
||||
rsync \
|
||||
runit \
|
||||
software-properties-common \
|
||||
&& \
|
||||
go get -v -u git.eeqj.de/sneak/runsvinit && \
|
||||
cp /root/go/bin/runsvinit /usr/local/sbin/runsvinit && \
|
||||
rm -r /root/go && \
|
||||
|
23
install.sh
23
install.sh
@ -31,27 +31,34 @@ apt-get -yqq update
|
||||
apt install -y postgresql-common
|
||||
echo -e "\n" | sh /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
|
||||
apt-get -yqq update
|
||||
apt-get install -y postgresql-client-12
|
||||
apt-get install -y postgresql-client-12 libpq-dev
|
||||
|
||||
sudo -H -u discourse bash --login <<EOF
|
||||
|
||||
id
|
||||
env
|
||||
whoami
|
||||
|
||||
|
||||
sudo -u discourse bash -l <<EOF
|
||||
export HOME="$H"
|
||||
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
|
||||
curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
|
||||
curl -sSL https://get.rvm.io | bash -s stable
|
||||
echo 'gem: --no-document' >> ~/.gemrc
|
||||
|
||||
|
||||
source $HOME/.rvm/scripts/rvm
|
||||
source ~/.rvm/scripts/rvm
|
||||
rvm install $RUBY_VERSION
|
||||
rvm --default use $RUBY_VERSION
|
||||
gem install bundler mailcatcher rake
|
||||
|
||||
curl -sSL https://get.rvm.io | bash
|
||||
source $HOME/.nvm/nvm.sh
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
|
||||
source ~/.nvm/nvm.sh
|
||||
nvm install $NODE_VERSION
|
||||
nvm alias default $NODE_VERSION
|
||||
npm install -g svgo
|
||||
|
||||
cd $HOME
|
||||
cd ~/app
|
||||
bundle install
|
||||
"
|
||||
EOF
|
||||
|
||||
|
||||
|
3
root/etc/service/discourse/run
Normal file
3
root/etc/service/discourse/run
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
sleep 60
|
Loading…
Reference in New Issue
Block a user