Public Repository

Last pushed: 2 years ago
Short Description
Docker image for running a local version of http://pretendyoure.xyz/
Full Description

Based on:

Dockerfile: https://github.com/glickbot/docker-pyx/blob/master/Dockerfile

Usage

NOTE: You don't need sudo when using boot2docker on Mac/Win

Pulling
sudo docker pull glickbot/pyx
Running

Run the Docker image

sudo docker -d -p 8080:8080 glickbot/pyx
Using

(On Linux) Visit

http://localhost:8080

(On OSX) Run

open "http://$(boot2docker ip):8080/"

(On Win) Get the IP from boot2docker ip, and visit:

http://<your boot2docker ip>:8080/
Stopping/Cleanup

To stop the service:

sudo docker ps -l
sudo docker stop <at least 4 characters of the id>
sudo docker rm <at least 4 characters of the id>

Alternatively, if you start the container with:

sudo docker run -p 8080:8080 --rm glickbot/pyx

It'll clean up after itself, but you can't run this with the -d flag, which puts it in the background.

Also, you could run:

sudo docker run -p 8080:8080 --rm -it glickbot/pyx

Which will keep the terminal attached, and also allow you to ctrl+c to stop jetty and break out of the container.

Notes:
  • To serve pyx to external clients while using boot2docker, you'll need to setup a reverse proxy (nginx/haproxy, etc), or add a bridged network adapter to your boot2docker VM.

Dockerfile base

Docker Pull Command
Owner
glickbot

Comments (0)