Guest User

Untitled

a guest
Jul 17th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4. artifactory:
  5. image: docker.bintray.io/jfrog/artifactory-oss:6.1.0
  6. ports:
  7. - 8081:8081
  8. volumes:
  9. - /opt/artifactory/docker_volume:/var/opt/jfrog/artifactory
  10. - /opt/artifactory/mysql-connector-java-8.0.11/mysql-connector-java-8.0.11.jar:/var/opt/jfrog/artifactory/tomcat/common/lib/mysql-connector-java-8.0.11.jar
  11. environment:
  12. - DB_TYPE=mysql
  13. - DB_USER=artifactory
  14. - DB_HOST=mysql
  15. - DB_PASSWORD=xxx
  16. - DB_URL=jdbc:mysql://my_sql:3306/artdb?characterEncoding=UTF-8&elideSetAutoCommits=true
  17. restart: always
  18. ulimits:
  19. nproc: 65535
  20. nofile:
  21. soft: 32000
  22. hard: 40000
  23.  
  24. # ls -al
  25. drwxr-xr-x 5 root root 4096 Jul 17 17:47 .
  26. drwxr-xr-x 16 root root 4096 Jul 17 15:40 ..
  27. drwxr-xr-x 8 1030 1030 4096 Jul 17 17:47 docker_volume
  28.  
  29. /opt/artifactory/docker_volume # ls -al
  30. total 32
  31. drwxr-xr-x 8 1030 1030 4096 Jul 17 17:47 .
  32. drwxr-xr-x 5 root root 4096 Jul 17 17:47 ..
  33. drwxr-xr-x 2 1030 1030 4096 Jul 17 17:47 access
  34. drwxr-xr-x 2 1030 1030 4096 Jul 17 17:47 backup
  35. drwxr-xr-x 2 1030 1030 4096 Jul 17 17:47 data
  36. drwxr-xr-x 2 1030 1030 4096 Jul 17 17:47 etc
  37. drwxr-xr-x 2 1030 1030 4096 Jul 17 17:47 logs
  38. drwxr-xr-x 3 1030 1030 4096 Jul 17 17:47 tomcat
  39.  
  40. Preparing to run Artifactory in Docker
  41. =====================================
  42. 2018-07-17 21:13:06 [44 entrypoint-artifactory.sh] Dockerfile for this image can found inside the container.
  43. 2018-07-17 21:13:06 [45 entrypoint-artifactory.sh] To view the Dockerfile: 'cat /docker/artifactory-oss/Dockerfile.artifactory'.
  44. 2018-07-17 21:13:06 [50 entrypoint-artifactory.sh] Checking open files and processes limits
  45. 2018-07-17 21:13:06 [53 entrypoint-artifactory.sh] Current max open files is 1048576
  46. 2018-07-17 21:13:06 [65 entrypoint-artifactory.sh] Current max open processes is unlimited
  47. 2018-07-17 21:13:06 [75 entrypoint-artifactory.sh] Checking if /var/opt/jfrog/artifactory is mounted
  48. 2018-07-17 21:13:06 [80 entrypoint-artifactory.sh] /var/opt/jfrog/artifactory is mounted
  49. 2018-07-17 21:13:06 [86 entrypoint-artifactory.sh] Setting up data directories if missing
  50. 2018-07-17 21:13:06 [97 entrypoint-artifactory.sh] Create artifactory user if missing
  51. 2018-07-17 21:13:06 [100 entrypoint-artifactory.sh] User does not exist. Creating it...
  52. 2018-07-17 21:13:06 [137 entrypoint-artifactory.sh] Checking permissions on /opt/jfrog/artifactory
  53. 2018-07-17 21:13:06 [143 entrypoint-artifactory.sh] /opt/jfrog/artifactory is owned by root:root. Setting to artifactory:artifactory.
  54. 2018-07-17 21:13:06 [150 entrypoint-artifactory.sh] Checking permissions on /var/opt/jfrog/artifactory
  55. 2018-07-17 21:13:06 [159 entrypoint-artifactory.sh] /var/opt/jfrog/artifactory is already owned by artifactory:artifactory.
  56. 2018-07-17 21:13:06 [282 entrypoint-artifactory.sh] Checking DB_TYPE
  57. 2018-07-17 21:13:06 [285 entrypoint-artifactory.sh] DB_TYPE is set to mysql
  58. 2018-07-17 21:13:06 [34 entrypoint-artifactory.sh] ERROR: No mysql connector found
Add Comment
Please, Sign In to add comment