Giter Site home page Giter Site logo

docker-swift-tensorflow's Introduction

docker-swift-tensorflow

Build Status Docker Pulls Docker Layers

dockeri.co

Dockerized Swift for TensorFlow with Jupyter and GPU Support.

Usage

CLI

nvidia-docker run -ti --rm \
  --privileged \
  --userns=host \
  \
  -v "$(pwd)":/notebooks \
  --entrypoint /bin/bash \
  zixia/swift

--privileged and --userns=host might be required for some docker deamon configuration. (see this issue)

Jupyter

nvidia-docker run -ti --rm \
  -p 8888:8888 \
  --cap-add SYS_PTRACE \
  -v "$(pwd)":/notebooks \
  zixia/swift

The functions of these parameters are:

  • -p 8888:8888 exposes the port on which Jupyter is running to the host.
  • --cap-add SYS_PTRACE adjusts the privileges with which this container is run, which is required for the Swift REPL.
  • -v <host path>:/notebooks bind mounts a host directory as a volume where notebooks created in the container will be stored. If this command is omitted, any notebooks created using the container will not be persisted when the container is stopped.

Run a Swift File

To run a local file main.swift form the current path:

nvidia-docker run -ti --rm \
  --privileged \
  --userns=host \
  \
  -v "$(pwd)":/notebooks \
  zixia/swift \
  swift ./main.swift

Develop

Testing

After building the docker image according to the instructions above,

docker run --rm \
  --cap-add SYS_PTRACE \
  zixia/swift \
  python3 /swift-jupyter/test/all_test_docker.py

History

v0.1 (22 Aug 2019)

Init version based on Swift-Jupyter, working under Ubuntu 19.04 without any problem.

Resources

Author

Huan (李卓桓) [email protected]

Profile of Huan LI (李卓桓) on StackOverflow

Copyright & License

  • Code & Docs © 2019-now Huan LI (李卓桓) [email protected]
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons

docker-swift-tensorflow's People

Contributors

huan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-swift-tensorflow's Issues

TypeError: Cannot read property 'charAt' of undefined at

When I Add Markdown, Got Error below:

TypeError: Cannot read property 'charAt' of undefined at

in t
in div
in t
in div
in t
in div
in t
in div
in div
in div
in div
in div
in div
in t
in h
in t
in div
in div
in div
in t
in main
in div
in t
in h
in f

Enable GitHub Actions

With swift version automatically set for docker image tag.

Fix the swift Python import error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.