parent
ae76a8977c
commit
4a0d07dc42
@ -1,11 +1,7 @@
|
||||
FROM ubuntu:14.04
|
||||
FROM microsoft/nanoserver
|
||||
|
||||
RUN apt-get update && apt-get install -y golang-go
|
||||
RUN apt-get install bash
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
RUN go build -o http
|
||||
COPY tmp /
|
||||
ENV PORT 8000
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["/app/http"]
|
||||
CMD ["\\http.exe"]
|
||||
|
@ -0,0 +1,6 @@
|
||||
FROM golang:nanoserver
|
||||
|
||||
COPY . /code
|
||||
WORKDIR /code
|
||||
|
||||
RUN go build http.go
|
@ -1,10 +1,9 @@
|
||||
whoami
|
||||
======
|
||||
# whoami for Windows
|
||||
|
||||
Simple HTTP docker service that prints it's container ID
|
||||
|
||||
$ docker run -d -p 8000:8000 --name whoami -t jwilder/whoami
|
||||
$ docker run -d -p 8000:8000 --name whoami -t stefanscherer/whoami-windows
|
||||
736ab83847bb12dddd8b09969433f3a02d64d5b0be48f7a5c59a594e3a6a3541
|
||||
|
||||
$ curl $(hostname --all-ip-addresses | awk '{print $1}'):8000
|
||||
|
||||
$ iwr http://$(docker inspect -f '{{ .NetworkSettings.Networks.nat.IPAddress }}' whoami):8000
|
||||
I'm 736ab83847bb
|
||||
|
Loading…
Reference in new issue