PIVOTAL Platform Acceleration Lab - Sessions.
Commonly used commands
====CLOUD FOUNDRY==== cf login -a api.run.pivotal.io cf push cf push -f manifest-registration.yml cf marketplace cf services cf target -s review cf create-service ${MYSQL_SERVICE_NAME} ${PLAN_NAME} tracker-database cf target -s production cf create-service ${MYSQL_SERVICE_NAME} ${PLAN_NAME} tracker-database cf create-service p-service-registry standard tracker-service-registry cf target -s review cf bind-service pal-tracker tracker-database cf target -s production cf bind-service pal-tracker tracker-database cf create-space review cf create-space production cf restart moviefun cf bind-service moviefun movies-mysql cf restage moviefun cf apps cf logout cf create-service p-config-server standard movie-fun-config -c config-server.json cf ssh -N -L 63306:192.168.16.98:3306 album-service-9 cf ssh -N -L 63306:192.168.16.98:3306 movie-service-9 ====FLYWAY COMMANDS==== flyway -url="jdbc:mysql://localhost:3306/tracker_dev" -locations=filesystem:databases/tracker clean migrate flyway -url="jdbc:mysql://localhost:3306/tracker_test" -locations=filesystem:databases/tracker clean migrate ===LINUX COMMANDS== apt search PACKAGE sudo apt install git brew install cloudfoundry/tap/cf-cli !4 (Runs the 4th command from history) mkdir -p databases/{album,movie}-database/src/main/resources/db/migration ====GRADLE COMMANDS==== ./gradlew build mkdir -p ~/workspace/use-gradle cd ~/workspace/use-gradle gradle wrapper ./gradlew tasks touch build.gradle ./gradlew sayHello sayGoodbye ./gradlew sH sG ./gradlew clean build --dry-run ./gradlew clean build ====Concourse FLY Commands==== fly --target pal-concourse login --concourse-url ${CONCOURSE_URL} --team-name ${TEAM_NAME} fly -t pal-concourse set-pipeline -p pal-tracker --load-vars-from ci/variables.yml -c ci/pipeline.yml fly -t pal-concourse destroy-pipeline -p pal-tracker fly -t pal-concourse unpause-pipeline -p pal-tracker fly set-pipeline fly validate-pipeline fly format-pipeline fly pipelines fly rename-pipeline fly pause-pipeline fly unpause-pipeline fly expose-pipeline fly hide-pipeline fly get-pipeline fly destroy-pipeline ====GIT COMMANDS===== git remote add origin2 https://github.com/{useridhere}/pal-tracker-distributed.git git push origin2 --force
Weblinks:
Concourse: https://concourse-ci.org/
FlywayDB: https://flywaydb.org/
App Continnum: http://www.appcontinuum.io/