8000 GitHub - aciidgh/swiftpm-docker
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

aciidgh/swiftpm-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ubuntu 14.04 Docker image for SwiftPM

  • Clone the repo.

  • Build the image:

      docker build -t swiftpm-docker .
    
  • Create a shared volume to keep swiftpm builds:

      docker create -v /build --name spm-build swiftpm-docker /bin/true
    
  • Build (and test) SwiftPM inside the shared volume:

      docker run -itv $(pwd):/swiftpm --volumes-from spm-build swiftpm-docker /swiftpm/Utilities/bootstrap test --build /build
    
  • Run any other package using previously built SwiftPM:

      docker run -itv $(pwd):/pkg --volumes-from spm-build swiftpm-docker /build/debug/swift-build -C /pkg
    
  • Delete all containers:

      docker rm $(docker ps -a -q)
    
  • List images:

      docker images
    
  • Delete images:

      docker rmi <id>
    

Note: Add -d to demonize a container, --rm to remove the container on exit.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0