Skip to content
This repository was archived by the owner on Feb 13, 2019. It is now read-only.

Update Docker template for RC2 #685

Closed
peterblazejewicz opened this issue May 8, 2016 · 4 comments · Fixed by #743
Closed

Update Docker template for RC2 #685

peterblazejewicz opened this issue May 8, 2016 · 4 comments · Fixed by #743
Labels

Comments

@peterblazejewicz
Copy link
Member

There is no AFAIK updated Docker image for use with dotnet/aspnet under RC2.
The current microsoft/dotnet is old and content from RC2 branch won't work on this image:

dotnet --version
.NET Command Line Tools (1.0.0-beta-001598)

Product Information:
 Version:     1.0.0-beta-001598
 Commit Sha:  N/A

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  14.04
 OS Platform: Linux
 Runtime Id:  ubuntu.14.04-x64

The template needs to ship with SQLite path (as the current one) in order to allow runing starter web projects out-of-the-box.

@glennc
Copy link
Contributor

glennc commented May 11, 2016

The microsoft/dotnet images will be updated for RC2. See: dotnet/dotnet-docker#36

@peterblazejewicz
Copy link
Member Author

Thanks! Subscribed!

peterblazejewicz added a commit to peterblazejewicz/generator-aspnet that referenced this issue May 14, 2016
- new dotnet image tag(s)
- new structure

TBD: figure out server-urls config

Thanks!
@spboyer
Copy link
Contributor

spboyer commented May 16, 2016

Just did a PR for this.

@benjoyce
Copy link

benjoyce commented Jun 9, 2016

I had some issues with this recently. I'm new to Yeoman and Docker so correct me if I'm wrong, but using "yo aspnet" produces a Dockerfile that doesn't work with RC2. To get it to work I publish first using "dotnet publish" and then updated my Dockerfile's FROM, RUN and ENTRYPOINT lines.

Here's my Dockerfile:

----- 8< -----
FROM microsoft/dotnet
RUN printf "deb http://ftp.us.debian.org/debian jessie main\n" >> /etc/apt/sources.list
RUN apt-get -qq update && apt-get install -qqy sqlite3 libsqlite3-dev && rm -rf /var/lib/apt/lists/*
COPY . /app
WORKDIR /app
RUN ["dotnet", "restore"]

EXPOSE 5000/tcp
#ENTRYPOINT ["dotnet", "-p", "project.json", "Microsoft.AspNet.Server.Kestrel", "--server.urls", "http://0.0.0.0:5000"]
ENTRYPOINT dotnet bin/Debug/netcoreapp1.0/publish/aspnetcore.dll
#aspnetcore is the name of my test project.

----- >8 -----
Hope this helps someone.

sesispla added a commit to sesispla/generator-aspnet that referenced this issue Jun 11, 2016
Added ConfigurationBuilder to WebHostBuilder for Dockerfile launch configuration
This was referenced Jun 11, 2016
sesispla added a commit to sesispla/generator-aspnet that referenced this issue Jun 12, 2016
sesispla added a commit to sesispla/generator-aspnet that referenced this issue Jun 12, 2016
peterblazejewicz pushed a commit that referenced this issue Jun 14, 2016
🐳 🐋 🐳 Dockerfile for RC2. Closes #685
Thanks to @sesispla! 👯 

Added ConfigurationBuilder to WebHostBuilder for Dockerfile launch configuration
* Update Dockerfile test to RC2 (#685)
* Added ConfigurationBuilder to Empty Project template. Closes #685
* Removed apt-get source while #530 is fixed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants