Last active
May 3, 2017 09:53
-
-
Save rokoucha/9b301a49e2a82b9d67df1bc18e0786f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker run -p 50000:50000 -p 50001:50001 -p 50010:50010 -p 50011:50011 -p 50012:50012 -it mhart/alpine-node /bin/sh | |
--------in docker------- | |
# Setup | |
cd ~ | |
mkdir -p /data/db | |
mkdir /file | |
# Install files | |
apk update | |
echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories | |
echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories | |
apk add --no-cache mongodb --allow-untrusted | |
apk add --no-cache redis graphicsmagick openssl nodejs python alpine-sdk | |
npm install -g forever node-gyp | |
git clone https://github.com/atnanasi/misskey-local-config.git ~/.misskey | |
# Build Misskey-Web | |
git clone git://github.com/misskey-delta/Misskey-Web.git | |
cd Misskey-Web | |
npm run deploy | |
cd .. | |
# Build Misskey-API | |
git clone git://github.com/misskey-delta/Misskey-API.git | |
cd Misskey-API | |
npm install | |
npm run build | |
cd .. | |
# Build Misskey-File | |
git clone git://github.com/misskey-delta/Misskey-File.git | |
cd Misskey-File | |
npm install | |
npm run build | |
cd .. | |
# Start DB | |
mongod & | |
redis-server & | |
# Start Misskey! | |
forever start Misskey-API | |
forever start Misskey-Web | |
forever start Misskey-File | |
#END | |
echo "END" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment