Last active
February 18, 2017 04:01
-
-
Save makslevental/f0ce5d0a720dd7d51e9d163bafff7522 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
dist/setup/setup configure --with-compiler /home/databrary/.stack/programs/x86_64-linux/ghc-7.10.3/bin/ghc --package-db /home/databrary/.stack/snapshots/x86_64-linux/lts-6.30/7.10.3/pkgdb --package-db /home/databrary/src/.stack-work/install/x86_64-linux/lts-6.30/7.10.3/pkgdb | |
sed -i "/^# deb.*multiverse/ s/^# //" /etc/apt/sources.list | |
echo 'deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse' >> /etc/apt/sources.list | |
echo 'deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse' >> /etc/apt/sources.list | |
apt-get install -y libgmp-dev git yasm nginx npm librack2-dev gcc g++ autoconf automake zlib1g-dev \ | |
x264 ffmpeg fdkaac ibavformat-dev libswscale-dev libavcodec-dev libavutil-dev | |
ALTER USER "databrary" WITH PASSWORD 'databrary123'; | |
docker run -it --rm --net databrary 0a6b93b5edfc | |
docker run --net databrary --name databrary_solr -d -p 8983:8983 -t solr | |
docker run -p 5432:5432 --net databrary --name databrary_postgres -e POSTGRES_PASSWORD=mysecretpassword -d 15b57eb53b42 | |
ALTER USER "user_name" WITH PASSWORD 'new_password'; | |
ALTER USER "user_name" WITH superuser; | |
stack runghc --no-ghc-package-path -- Setup.hs configure --package-db `stack path --snapshot-pkg-db` --package-db `stack path --local-pkg-db` | |
stack runghc --no-ghc-package-path Setup.hs -- configure --user -f -devel --package-db `stack path --snapshot-pkg-db` --package-db `stack path --local-pkg-db` | |
docker exec -u 0 -it mycontainer bash | |
-rw-r--r-- 1 root root 39256 Aug 25 11:29 libcrack.so.2.9.0 | |
maksim@maksim-ThinkPad-X1-Carbon:~/dev_projects/databrary$ stack build --ghc-options "-L/usr/lib/x86_64-linux-gnu/ -lavformat -lavcodec -lavutil -lavdevice -lavfilter -lswscale -lcrack" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment