Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // setting up vm
- -- ubuntu 16, 20gb standard disk
- -- added private key pair from my host machine
- -- setup static IP for machine
- -- unselected delete boot disk on deletion
- -- allow http and https traffic
- // setting up dns
- -- See image /dns-settings.png
- // setting up docker, docker-compose, docker-cleanup (remove untagged containers and images) (https://gist.github.com/wdullaer/f1af16bd7e970389bad3)
- -- wget -qO- https://get.docker.com/ | sh
- -- sudo usermod -aG docker john
- -- COMPOSE_VERSION=`git ls-remote https://github.com/docker/compose | grep refs/tags | grep -oP "[0-9]+\.[0-9][0-9]+\.[0-9]+$" | tail -n 1`
- -- sudo sh -c "curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose"
- -- sudo chmod +x /usr/local/bin/docker-compose
- -- sudo sh -c "curl -L https://raw.githubusercontent.com/docker/compose/${COMPOSE_VERSION}/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose"
- -- cd /tmp
- -- git clone https://gist.github.com/76b450a0c986e576e98b.git
- -- cd 76b450a0c986e576e98b
- -- sudo mv docker-cleanup /usr/local/bin/docker-cleanup
- -- sudo chmod +x /usr/local/bin/docker-cleanup
- // setting up git ssh
- -- ssh-keygen -t rsa -b 4096 -C "john@jenca.io"
- -- eval "$(ssh-agent -s)"
- -- ssh-add ~/.ssh/id_rsa
- -- cat .ssh/id_rsa.pub
- -- go to github and add ssh key
- // clone puffin
- -- git clone --recursive git@github.com:puffinrocks/puffin.git
- // update docker-compose :1
- -- cp docker-compose-example.yml compose-production.yml
- puffin:
- - build: .
- - SERVER_NAME=bimcontainer.com
- - VIRTUAL_HOST=bimcontainer.com
- - SECRET_KEY=loloolool
- (tbc) :2 - setup email. dns-settings-gcp.png (Issue)
- - MAIL_SUPPRESS_SEND=False
- - MAIL_SERVER=smtp.mailgun.org
- - MAIL_PORT=2525
- - MAIL_USERNAME=postmaster@mail.jenca.io
- - MAIL_PASSWORD=93cec017799c33ddaf9cd56daae
- - MAIL_DEFAULT_SENDER=john@jenca.io
- - MAIL_USE_TLS=True
- - MAIL_USE_SSL=False
- note:
- puffindb: (This was in my old version but not in his new version)
- volumes: ./postgresData:/var/lib/postgresql/data
- // HTTPS
- "either buy a certificate or use letsencrypt" - puffinman
- // Replacing puffin stuff -> https://github.com/puffinrocks/puffin/compare/master...jencahq:master
- update css to reflect updates
- - second part of puffin/templates/base.html not updated
- - place to reference jencahq - puffin/templates/macros.html
- - replace puffin/static/images logo.png (20 height) /BIMCONTAINER/bimcontainer-logos/bimwhite-john.png
- - update puffin/static/favicon.png (16*16) /BIMCONTAINER/bimcontainer-logos/bcgreen16x16.png
- - comment out static/images/puffin-scaled.jpg in templates/index.html
- - 'created by Jenca' in base.html
- - update the add your application link.
- // Adding apps
- to add submodules --> git submodule add <URL>
- to update existing submodule --> git submodule update --remote (checks out latest version of apps. Updates puffin with latest commit id)
- When I run this ^ i get; error: cannot open /home/john/puffin/.git/modules/apps/modules/_backup/FETCH_HEAD: Permission
- denied
- Unable to fetch in submodule path '_backup'
- make changes to app
- commit to repository
- push to repository
- change to puffin directory
- run update existing submodule command ^^
- Setting up my own apps/ folder with my own gitsubmodules. I can include the ones that are in it.
- - begin with puffin-catalogue, then rm apps via;
- $git rm <the_submodule>
- $rm -rf .git/modules/<the_submodule>
- Note: the .git store for the apps submodule is not in apps/ but in puffin/
- // unifluxx
- Tried to pull from docker-compose but when I tried to sign in, flux gave me 500 saying that it couldnt authenticate me.
- when i built it myself, it ran.
- // contactfluxx
- Included env vars in docker-compose. Not sure if required.
- readme needs updating
- need to include logo.png
- // speckle
- need to refactor code so dont require quotes in compose file
- also need to reference https://github.com/puffinrocks/rocketchat/blob/f3199ef505b61b8a4cda8b0e8ada4155f05c3016/docker-compose.yml
- // 3d-repo
- To 'get by' login
- it uses an interesting authentication mechanism. It does its user auth by creating users in mongo and using its auth.
- $ docker-compose exec mongo mongo -u 3drepo -p 3Fu9Ypofv4GxDUlc41Od --authenticationDatabase admin test
- $ use admin
- $ db.getUsers()
- $ http://localhost:5000/registerVerify?username=<USERNAME>&token=<TOKEN>
- where <username> and <token> are the username and token that appear in mongo
- // App directory requirements
- -- See docker-compose template
- -- Logos must be 200x200 pixels with a transparent background. [link to instruction](http://graphicdesign.stackexchange.com/questions/36520/how-to-m
- ake-a-color-transparent-in-gimp)
- -- Screenshots of app must be 1011 x 697 and 435*300
- -- Suggested format
- App Name
- _Very short description here_
- [http://yourinfopage.com](yourinfopage)
- Long description here
- Other information
- [![](screenshots/YourScreenshotSmall-435*300.png)](screenshots/YourScreenshotEnlarged-1011*697.png)
- // Resizing host disk
- Use fdisk to first delete the partition (the idea is that the data on disk will be preserved), then carefully recreate it with a larger size at the same position.
- $ df -h
- $ sudo cfdisk /dev/sda
- - take note of start
- - delete the partition
- - create new
- - confirm start is the same
- - write partition table
- - quit
- $ sudo partprobe
- $ sudo resize2fs /dev/sda1
- $ df -h
- // GCP command for file transfer
- gcloud compute --project=jenca-158021 copy-files . johneganireland@jenca-cloud:/home/johneganireland/puffin/apps/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement