Advertisement
Guest User

Untitled

a guest
Apr 20th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.83 KB | None | 0 0
  1. # This is a sample build configuration for Javascript.
  2. # Check our guides at https://confluence.atlassian.com/x/VYk8Lw for more examples.
  3. # Only use spaces to indent your .yml configuration.
  4. # -----
  5. # You can specify a custom docker image from Docker Hub as your build environment.
  6. image: node:6.9.5
  7.  
  8. pipelines:
  9. default:
  10. - step:
  11. script:
  12. # Step 1 : Install yarn with the easy way : https://yarnpkg.com/en/docs/install#alternatives-tab
  13. - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.22.0
  14. # Step 2: Belived https://confluence.atlassian.com/bitbucket/javascript-node-js-with-bitbucket-pipelines-873891287.html#Javascript(Node.js)withBitbucketPipelines-ManagingdependencieswithYarn
  15. # PATH variable should change like they said
  16. - export PATH=$HOME/.yarn/bin:$PATH
  17. # Step 3: Install app dependencies
  18. - yarn install
  19. #Allow to test app in production context
  20. - export NODE_ENV=production
  21. #Allow to specify the JWT TOKEN Signature (and not use OAuth0)
  22. - export SECRET_SIGNATURE_JWT_TOKEN=pokémon47
  23. # prepare PostgreSQL
  24. # - psql -U "postgres" -c "CREATE DATABASE custom_db" # create a new database
  25. # - psql -U "postgres" -c "CREATE USER custom_user WITH PASSWORD 'custom_pass'" # create a new user : custom_user
  26. # - psql -U "postgres" -d "custom_db" -f sql/database_tables.sql # create tables
  27. # - psql -U "postgres" -d "custom_db" -f sql/database_grant.sql # give him the credentials
  28. # - psql -U "postgres" -d "custom_db" -f sql/test_insert.sql # add basic data inside the database : some parkings and reasons
  29. #run the test with database
  30. - npm test
  31. services:
  32. - postgres
  33.  
  34. definitions:
  35. services:
  36. postgres:
  37. image: postgres:9.3
  38.  
  39. docker ps
  40.  
  41. docker exec -it myContainer bash
  42.  
  43. Cannot connect to the Docker daemon. Is the docker daemon running on this host?
  44.  
  45. The files belonging to this database system will be owned by user "postgres".
  46. This user must also own the server process.
  47.  
  48. The database cluster will be initialized with locale "en_US.utf8".
  49. The default database encoding has accordingly been set to "UTF8".
  50. The default text search configuration will be set to "english".
  51.  
  52. Data page checksums are disabled.
  53.  
  54. fixing permissions on existing directory /var/lib/postgresql/data ... ok
  55. creating subdirectories ... ok
  56. selecting default max_connections ... 100
  57. selecting default shared_buffers ... 128MB
  58. creating configuration files ... ok
  59. creating template1 database in /var/lib/postgresql/data/base/1 ... ok
  60. initializing pg_authid ... ok
  61. initializing dependencies ... ok
  62. creating system views ... ok
  63. loading system objects' descriptions ... ok
  64. creating collations ... ok
  65. creating conversions ... ok
  66. creating dictionaries ... ok
  67. setting privileges on built-in objects ... ok
  68. creating information schema ... ok
  69. loading PL/pgSQL server-side language ... ok
  70. vacuuming database template1 ... ok
  71. copying template1 to template0 ... ok
  72. copying template1 to postgres ... ok
  73.  
  74. WARNING: enabling "trust" authentication for local connections
  75. You can change this by editing pg_hba.conf or using the option -A, or
  76. --auth-local and --auth-host, the next time you run initdb.
  77. syncing data to disk ... ok
  78.  
  79. Success. You can now start the database server using:
  80.  
  81. postgres -D /var/lib/postgresql/data
  82. or
  83. pg_ctl -D /var/lib/postgresql/data -l logfile start
  84.  
  85. ****************************************************
  86. WARNING: No password has been set for the database.
  87. This will allow anyone with access to the
  88. Postgres port to access your database. In
  89. Docker's default configuration, this is
  90. effectively any other container on the same
  91. system.
  92.  
  93. Use "-e POSTGRES_PASSWORD=password" to set
  94. it in "docker run".
  95. ****************************************************
  96. waiting for server to start....LOG: database system was shut down at 2017-04-20 12:50:43 UTC
  97. LOG: MultiXact member wraparound protections are now enabled
  98. LOG: autovacuum launcher started
  99. LOG: database system is ready to accept connections
  100. done
  101. server started
  102. ALTER ROLE
  103.  
  104.  
  105. /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
  106.  
  107. LOG: received fast shutdown request
  108. LOG: aborting any active transactions
  109. waiting for server to shut down...LOG: autovacuum launcher shutting down
  110. LOG: shutting down
  111. .LOG: database system is shut down
  112. done
  113. server stopped
  114.  
  115. PostgreSQL init process complete; ready for start up.
  116.  
  117. LOG: database system was shut down at 2017-04-20 12:50:45 UTC
  118. LOG: MultiXact member wraparound protections are now enabled
  119. LOG: database system is ready to accept connections
  120. LOG: autovacuum launcher started
  121. LOG: received smart shutdown request
  122. LOG: autovacuum launcher shutting down
  123. LOG: shutting down
  124. LOG: database system is shut down
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement