jfrog / artifactory-docker-examples

Examples for using Artifactory Docker distribution in various environments
https://www.jfrog.com/artifactory/
Apache License 2.0
330 stars 299 forks source link

Prepare script not working #136

Closed vaIgarashi closed 5 years ago

vaIgarashi commented 5 years ago

Ubuntu 18

./prepareHostEnv.sh -t oss -c
Are you sure you want to remove existing /data [y/n]: y
Removing old /data
Creating /data
First setup. Setting FIRST_SETUP=true
Copying needed files to directories
Artifactory configuration files
cp: cannot stat './../../files/access': No such file or directory

ERROR: Copy failed
eldada commented 5 years ago

@vagola - what directory are you running this in? Trying to run the same in an ubuntu 18 VM:

$ sudo ./prepareHostEnv.sh -t oss -c
Creating /data
First setup. Setting FIRST_SETUP=true
Copying needed files to directories
Artifactory configuration files
Nginx Artifactory configuration
Setting needed ownerships on /data

======================================

INSTALLATION DIRECTORY
  - Artifactory OSS:   /data/artifactory/etc
- The access keys used in these examples SHOULD NOT be used for production!

======================================
Amdingo commented 5 years ago

I get this same issue on 18.04, running from ~/artifactory/prepareHostEnv.sh

Nevermind, I was not adding the ../../files directory when I moved the files out of the repo. This may be @vagola 's issue as well.

vaIgarashi commented 5 years ago

@Amdingo thanks

mneeharika commented 5 years ago

so, If i'm trying a new installation of Artifactory OSS, where do I get these ../../files directory? I'm also facing the same copy error while executing the prepareHostEnv.sh script.

Amdingo commented 5 years ago

@mneeharika you have to clone the entire repository and run the docker-compose file from its default location within the folder structure of the repository.

mneeharika commented 5 years ago

Thanks @Amdingo ! That worked!