In terminal go to /frenzylabs/layerkeep-infra
-
Setup Aws Authentication to have access to the secrets Copy .saml2aws to /root/ or copy the content into /root/.saml2aws if it already exist.
Update username to be your frenzylabs email address. -
Run
saml2aws login
and follow prompts -
Run rabbitmq
make localdev setup-rabbitmq
-
Setup Repo Directory
skaffold deploy -p repo
-
Run nginx
make localdev setup-nginx
make localdev setup-ingress
-
Run Postgres
make localdev setup-postgres init=true
-
cd ../layerkeep-services/layerkeep && skaffold dev
-
Run migrations
make localdev run-database-migrations -f ../../layerkeep-infra/Makefile
-
Setup host file Edit /etc/hosts and add 127.0.0.1 layerkeep.local, www.layerkeep.local, admin.layerkeep.local
First time it runs it takes a minute with webpack compiling assets
INSTALL NGINX LOCALLY
brew tap denji/nginx brew install nginx-full --with-auth-req
test
docker run -it -p 3000:3000
-v /frenzylabs/layerkeep_services/layerkeep/public/assets:/var/www/layerkeep/app/public/assets
-e SECRET_KEY_BASE=c959724279db5ca746e7a87
-e PG_HOST=host.docker.internal
-e PG_PASSWORD=admin123
-e PG_USERNAME=postgresadmin
-e PG_DATABASE=layerkeep
localhost/layerkeepweb:latest /bin/bash
bundle exec rails assets:precompile
ADMIN:
rails generate active_admin:resource Contact