Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new docker files for yuniql/cli image to support volume #272

Merged
merged 1 commit into from
May 22, 2022

Conversation

rdagumampan
Copy link
Owner

  • Supports mapping local volume as source of db scripts
  • Supports all CLI verbs

Linux

cd c:/play/yuniql
docker build -t yuniql/cli -f dockerfile.multi-stage-linux-x64-cli .
docker tag yuniql/cli yuniql/cli:linux-x64-1.3.2

docker run --rm -v c:/play/yuniql/samples/basic-postgresql-sample:/data yuniql/cli:linux-x64-1.3.2 run --platform postgresql -d  -c "<your-connection-string>"
docker run --rm -v c:/play/yuniql/samples/basic-postgresql-sample:/data yuniql/cli:linux-x64-1.3.2 erase --platform postgresql -d  -c "<your-connection-string>" --force

Windows

cd c:/play/yuniql-issue-234
docker build -t yuniql/cli -f dockerfile.multi-stage-win-x64-cli .
docker tag yuniql/cli yuniql/cli:win-x64-1.3.2

docker run --rm -v c:/play/yuniql/samples/basic-postgresql-sample:c:/data yuniql/cli:win-x64-1.3.2 run --platform postgresql -d  -c "<your-connection-string>"
docker run --rm -v c:/play/yuniql/samples/basic-postgresql-sample:c:/data yuniql/cli:win-x64-1.3.2 erase --platform postgresql -d  -c "<your-connection-string>" --force

@rdagumampan rdagumampan added this to the v1.3 milestone May 22, 2022
@rdagumampan rdagumampan self-assigned this May 22, 2022
@rdagumampan rdagumampan linked an issue May 22, 2022 that may be closed by this pull request
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@rdagumampan rdagumampan merged commit e390590 into master May 22, 2022
@rdagumampan rdagumampan deleted the issue-234-docker-volume branch May 22, 2022 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support docker run -v <workspace> yuniql/yuniql:runner-latest
1 participant