5

Let me just say I'm not the biggest docker fan but it is helpful to document what is needed to install a system. This script should help people who have never tried to install phuks to get further to a successful install than they ever have.

Here's what I have. It is psuedo-code really meant to be pasted into a console than used with docker at this point.

base debian
apt-get update
apt-get install git python3 mysql-server redis-server libmariadbclient-dev libboost-python-dev python3-pip wget libffi-dev libexiv2-dev

wget https://nodejs.org/dist/v9.11.1/node-v9.11.1-linux-x64.tar.xz -O node.tar.gz
tar xf node.tar.xz
cd node-*
for i in bin include lib share
do
 mkdir -p /usr/local/$i
 cp -a $i/* /usr/local/$i
done
cd -
rm node* -r

git clone https://phab.phuks.co/source/throat.git
cd throat
npm install


pip3 install -r requirements.txt

mv example.config.py config.py

/etc/init.d/mysql start
echo 'create database phuks;' | mysql
mysql phuks < throat.sql

redis-server &

./wcgi.py
Let me just say I'm not the biggest docker fan but it is helpful to document what is needed to install a system. This script should help people who have never tried to install phuks to get further to a successful install than they ever have. Here's what I have. It is psuedo-code really meant to be pasted into a console than used with docker at this point. ``` base debian apt-get update apt-get install git python3 mysql-server redis-server libmariadbclient-dev libboost-python-dev python3-pip wget libffi-dev libexiv2-dev wget https://nodejs.org/dist/v9.11.1/node-v9.11.1-linux-x64.tar.xz -O node.tar.gz tar xf node.tar.xz cd node-* for i in bin include lib share do mkdir -p /usr/local/$i cp -a $i/* /usr/local/$i done cd - rm node* -r git clone https://phab.phuks.co/source/throat.git cd throat npm install pip3 install -r requirements.txt mv example.config.py config.py /etc/init.d/mysql start echo 'create database phuks;' | mysql mysql phuks < throat.sql redis-server & ./wcgi.py ```

7 comments

[–] terannotterran 0 points (+0|-0)

Webpack?

Your paste 404s.

[–] fusir [OP] 0 points (+0|-0)

It should be the same as what I posted here. That's why I didn't only link to it. It's behind the phab.phuks.co signin I guess.

So yeah, with that giant monolith of code to get the site set up it is about ready to run but needs some manifest.json that is generated by webpack based on webpack.config.js.

The dockerfile is so close to being completed, and then people can actually install this thing.