SHARE
TWEET

frisk

a guest Jul 19th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. =====
  2.  
  3. sudo apt install docker docker-compose
  4.  
  5. sudo usermod -aG docker $USER
  6. /// talvez é necessário deslogar e logar novamente para executar o docker com o $USER da sessão
  7.  
  8. sudo modprobe xt_ipvs
  9.  
  10. docker swarm init
  11.  
  12. sudo apt  install golang-go go-dep
  13.  
  14. mkdir -p go/src/github.com/damorimRG/
  15.  
  16. nano ~./bashrc ==> incluir na ultima linha o seguinte: export GOPATH=$HOME/go
  17. source .bashrc #==> para carregar a nova variavel de ambiente, assim, toda vez que logar, a variavel estará pronta
  18.  
  19. cd go/src/github.com/damorimRG/
  20.  
  21. git clone https://github.com/damorimRG/frisk-back.git
  22.  
  23. cd frisk-back/
  24.  
  25. git clone https://github.com/damorimRG/frisk-front.git  DockerFiddle
  26.  
  27.  
  28. sudo apt install ruby-full git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev nodejs yarn ruby-railties ruby-bundler
  29.  
  30.  
  31. dep ensure -v
  32.  
  33. dep ensure -v -vendor-only
  34.  
  35. cd DockerFiddle/
  36.  
  37. bundle install --path vendor/bundle
  38.  
  39. bin/rails db:migrate RAILS_ENV=development
  40.  
  41. cd .. (ou cd ~/go/src/github.com/damorimRG/frisk-back )
  42.  
  43. docker-compose up
  44.  
  45. docker pull lhsm/dind
  46.  
  47.  
  48.  
  49.  
  50.  
  51. ========
  52. Comandos úteis:
  53.  
  54. docker container rm $(docker container ls -aq)
  55.  
  56. docker-compose build
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top