Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
WMS Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Software
WMS Server
Commits
c9e21b1c
Commit
c9e21b1c
authored
Apr 04, 2020
by
Nicolas Lenz
❄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dockerize
parent
07647e3b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
220 additions
and
12 deletions
+220
-12
.gitignore
.gitignore
+0
-1
.gitlab-ci.yml
.gitlab-ci.yml
+18
-6
docker/dockerfile
docker/dockerfile
+6
-0
stack.yaml
stack.yaml
+1
-1
stack.yaml.lock
stack.yaml.lock
+4
-4
wms-server.cabal
wms-server.cabal
+191
-0
No files found.
.gitignore
View file @
c9e21b1c
...
...
@@ -19,4 +19,3 @@ cabal.sandbox.config
*.keter
*~
\#*
wms-server.cabal
.gitlab-ci.yml
View file @
c9e21b1c
image
:
fpco/stack-build:latest
variables
:
STACK_ROOT
:
"
${CI_PROJECT_DIR}/.stack"
cache
:
paths
:
-
.stack-work
-
.stack
build
:
stage
:
build
image
:
fpco/stack-build:14.27
script
:
-
stack build
-
cp $(stack path --dist-dir)/build/wms-server/wms-server .
...
...
@@ -19,3 +15,19 @@ build:
-
wms-server
-
wms-server-ctl
-
config
cache
:
paths
:
-
.stack-work
-
.stack
docker
:
stage
:
build-image
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
cp wms-server docker/
-
cp wms-server-ctl docker/
-
cp -r config docker/
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor --context $CI_PROJECT_DIR/docker --dockerfile $CI_PROJECT_DIR/docker/dockerfile --destination $CI_REGISTRY_IMAGE:latest
docker/dockerfile
0 → 100644
View file @
c9e21b1c
FROM
debian:latest
COPY
wms-server .
COPY
wms-server-ctl .
COPY
config .
CMD
./wms-server
stack.yaml
View file @
c9e21b1c
resolver
:
lts-14.2
1
resolver
:
lts-14.2
7
packages
:
-
.
stack.yaml.lock
View file @
c9e21b1c
...
...
@@ -6,7 +6,7 @@
packages: []
snapshots:
- completed:
size: 524
162
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/14/2
1
.yaml
sha256:
9a55dd75853718f2bbbe951872b36a3b7802fcd71796e0f25b8664f24e34c666
original: lts-14.2
1
size: 524
996
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/14/2
7
.yaml
sha256:
7ea31a280c56bf36ff591a7397cc384d0dff622e7f9e4225b47d8980f019a0f0
original: lts-14.2
7
wms-server.cabal
0 → 100644
View file @
c9e21b1c
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.33.0.
--
-- see: https://github.com/sol/hpack
--
-- hash: 60b15aa4f32d8402f49b7ebaa530e5151f54dcba818b51634f1e8b9bd9024c38
name: wms-server
version: 1.0.0
license: Apache-2.0
license-file: LICENSE
build-type: Simple
flag dev
description: Turn on development settings, like auto-reload templates.
manual: False
default: False
flag library-only
description: Build for use with "yesod devel"
manual: False
default: False
library
exposed-modules:
Application
Auth
Foundation
Handler.Container
Handler.Location
Handler.Misc
Import
Import.NoFoundation
Model
Settings
other-modules:
Paths_wms_server
hs-source-dirs:
src
build-depends:
aeson
, base
, bytestring
, case-insensitive
, classy-prelude
, classy-prelude-conduit
, classy-prelude-yesod
, conduit
, containers
, cryptonite
, data-default
, directory
, fast-logger
, file-embed
, foreign-store
, hjsmin
, http-client-tls
, http-conduit
, monad-control
, monad-logger
, persistent
, persistent-postgresql
, persistent-template
, safe
, shakespeare
, template-haskell
, text
, time
, unordered-containers
, vector
, wai
, wai-extra
, wai-logger
, warp
, yaml
, yesod
, yesod-core
, yesod-form
, yesod-static
if (flag(dev)) || (flag(library-only))
ghc-options: -Wall -fwarn-tabs -O0
cpp-options: -DDEVELOPMENT
else
ghc-options: -Wall -fwarn-tabs -O2
default-language: Haskell2010
executable wms-server
main-is: main.hs
other-modules:
DevelMain
Paths_wms_server
hs-source-dirs:
app
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
aeson
, base
, bytestring
, case-insensitive
, classy-prelude
, classy-prelude-conduit
, classy-prelude-yesod
, conduit
, containers
, cryptonite
, data-default
, directory
, fast-logger
, file-embed
, foreign-store
, hjsmin
, http-client-tls
, http-conduit
, monad-control
, monad-logger
, persistent
, persistent-postgresql
, persistent-template
, safe
, shakespeare
, template-haskell
, text
, time
, unordered-containers
, vector
, wai
, wai-extra
, wai-logger
, warp
, wms-server
, yaml
, yesod
, yesod-core
, yesod-form
, yesod-static
if flag(library-only)
buildable: False
default-language: Haskell2010
executable wms-server-ctl
main-is: Main.hs
other-modules:
Paths_wms_server
hs-source-dirs:
app-ctl
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
aeson
, base
, bytestring
, case-insensitive
, classy-prelude
, classy-prelude-conduit
, classy-prelude-yesod
, conduit
, containers
, cryptonite
, data-default
, directory
, fast-logger
, file-embed
, foreign-store
, hjsmin
, http-client-tls
, http-conduit
, monad-control
, monad-logger
, persistent
, persistent-postgresql
, persistent-template
, safe
, shakespeare
, template-haskell
, text
, time
, unordered-containers
, vector
, wai
, wai-extra
, wai-logger
, warp
, wms-server
, yaml
, yesod
, yesod-core
, yesod-form
, yesod-static
if flag(library-only)
buildable: False
default-language: Haskell2010
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment