Git Product home page Git Product logo

visdom-docker's Introduction

Visdom Build statusWe love open source

Docker image

If you want to run visdom server by a docker container this is for you.

Build your own image

Not all versions of original project are released, so if you want to build a particular version (I mean "commit-ish") of sources then update the commitish file:

$ docker build -t hypnosapos/visdom:$(cat commitish)

Default version of python is 3.6 (build arg PY_VERSION) and distribution is slim-stretch (build arg DIST), thus add your custom values if your want other base docker image, here an example:

$ docker build --build-arg PY_VERSION=3.5 --build-arg DIST=slim -t hypnosapos/visdom:3.5-slim-$(cat commitish)

Play

Before running the container take a look at the following env variables ( -e NAME=VALUE):

Name Default
PORT 8097
ENV_PATH $HOME/.visdom
LOGGING_LEVEL INFO
HOSTNAME localhost
BASE_URL /
READONLY True
ENABLE_LOGIN False
FORCE_NEW_COOKIE False

Now we're ready to run the container

$ docker run -it -p 8097:8097 [-e NAME=VALUE] hypnosapos/visdom:latest

In order to preserve data or sessions we recommend you attach a volume to persist them (obviously):

$ docker run -it -v <path>:<env_path> -p 8097:8097 -e ENV_PATH=<env_path> hypnosapos/visdom:latest

Using default values, server would be ready at http://localhost:8097

Trying visdom

To play with some examples we recommend you try:

docker run -d -p 8097:8097 --name visdom hypnosapos/visdom:latest
docker exec -it visdom bash -c "python /root/visdom/example/demo.py"

And then check out examples at: http://localhost:8097

I hope it helps ๐Ÿ˜† !!

visdom-docker's People

Contributors

engapa avatar engapa-bbva avatar

Watchers

 avatar

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.