Comments (3)
I did a short test and updated the Dockerfile
to build it with current Win10/Win2016 environments
FROM microsoft/windowsservercore
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
ENV PGDATA c:\\sql
ENV PGPORT 5432
#not using PGUSER here due to need to run createuser downstream to create role
ENV PGUSERVAR postgres
ENV PGDOWNLOADVER postgresql-9.5.2-1-windows-x64-binaries.zip
# download and extract binaries
RUN wget http://get.enterprisedb.com/postgresql/$env:PGDOWNLOADVER -outfile $env:PGDOWNLOADVER ; \
expand-archive $env:PGDOWNLOADVER -force -destinationpath /postgresql ; \
rm $env:PGDOWNLOADVER
#install VC 2013 runtime required by postgresql
#use chocolatey pkg mgr to facilitate command-line installations
RUN iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
RUN choco install vcredist2013 -y
# copy dependent script(s)
COPY . /install
WORKDIR /postgresql/pgsql/bin
# init postgresql db cluster, config and create and start service
RUN powershell /install/init-config-start-service $env:PGDATA $env:PGUSERVAR
# start postgreSQL using the designated data dir
CMD powershell /install/start detached $env:PGDATA $env:PGUSERVAR
This still does not use all the features available on Windows (like EXPOSE or VOLUME), but it may help you build it and it will start a DB server.
Would be good if someone sends a pull request to the official postgres Docker image to add a Windows image for that, too :-)
from dockerfiles-for-windows.
The image can't be pulled with RTM versions of Windows. At that time TP5 was out and a lot thkngs have changed since then.
I haven't found other Windows images for PostgreSQL. You have to build an own image, the Dockerfile needs at least an update in the FROM instruction.
from dockerfiles-for-windows.
from dockerfiles-for-windows.
Related Issues (9)
- sqlexpress installation HOT 2
- how to using sqlserver-express image
- sqlexpress build on osx failed:Container command '/bin/sh' not found or does not exist.
- [Question]: SQLExpress firewall help? HOT 19
- cant start container who are offline HOT 1
- oci runtime error: exec: "/bin/sh": stat /bin/sh: no such file or directory HOT 2
- Error during build for sqlexpress HOT 3
- Access SQL Express from outside the host VM not possible HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockerfiles-for-windows.