Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Picasoft
Technique
Dockerfiles
Commits
335c8310
Commit
335c8310
authored
5 years ago
by
Romain de Laage
Browse files
Options
Downloads
Patches
Plain Diff
Prise en compte des commentaires de Quentin
parent
3002b5ea
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Dockerfile
+10
-11
10 additions, 11 deletions
Dockerfile
docker-compose.yml
+2
-12
2 additions, 12 deletions
docker-compose.yml
lufi.conf
+1
-1
1 addition, 1 deletion
lufi.conf
lufi.secrets
+2
-0
2 additions, 0 deletions
lufi.secrets
tini
+0
-0
0 additions, 0 deletions
tini
with
15 additions
and
24 deletions
Dockerfile
+
10
−
11
View file @
335c8310
FROM
debian:buster
ARG
LUFI_BUILD_VERSION=0.04.6
ARG
TINI_BUILD_VERSION=v0.18.0
RUN
apt-get update
\
&&
apt-get
-yq
install
build-essential libssl-dev libio-socket-ssl-perl liblwp-protocol-https-perl libpq-dev git
\
&&
cpan
-a
&&
cpan Carton
\
&&
git clone https://framagit.org/fiat-tux/hat-softwares/lufi.git /lufi
&&
apt-get
-yq
install
build-essential libssl-dev libio-socket-ssl-perl liblwp-protocol-https-perl libpq-dev wget unzip
\
&&
apt-get clean
&&
cpan Carton
\
&&
wget https://github.com/ldidry/lufi/archive/
${
LUFI_BUILD_VERSION
}
.zip
&&
unzip
${
LUFI_BUILD_VERSION
}
.zip
\
&&
wget https://github.com/krallin/tini/releases/download/
${
TINI_BUILD_VERSION
}
/tini-amd64
&&
mv
tini-amd64 tini
\
&&
rm
${
LUFI_BUILD_VERSION
}
.zip
&&
mv
lufi-
${
LUFI_BUILD_VERSION
}
lufi
COPY
lufi.conf /lufi/lufi.conf
WORKDIR
/lufi
RUN
carton
install
--deployment
--without
=
test
--without
=
sqlite
--without
=
mysql
VOLUME
/lufi/data /lufi/files
RUN
carton
install
--deployment
--without
=
test
--without
=
sqlite
--without
=
mysql
&&
chmod
+x /tini
ADD
tini /tini
RUN
chmod
+x /tini
ENTRYPOINT
["/tini", "--"]
EXPOSE
8081
CMD
["carton", "exec", "hypnotoad", "-f", "/lufi/script/lufi"]
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
2
−
12
View file @
335c8310
version
:
'
3'
services
:
lufidb
:
image
:
postgres
image
:
postgres
:12
container_name
:
lufidb
restart
:
always
networks
:
-
lufi
environment
:
-
POSTGRES_PASSWORD=passwd
-
POSTGRES_USER=lufidb
env_file
:
lufi.secrets
volumes
:
-
/var/lib/postgresql/data
lufi
:
...
...
@@ -18,12 +14,6 @@ services:
-
lufidb
ports
:
-
8081:8081
networks
:
-
lufi
volumes
:
-
/lufi/data
-
/lufi/files
networks
:
lufi
:
external
:
true
This diff is collapsed.
Click to expand it.
lufi.conf
+
1
−
1
View file @
335c8310
...
...
@@ -10,7 +10,7 @@
listen
=> [
'http://0.0.0.0:8081'
],
# if you use Lufi behind a reverse proxy like Nginx, you want to set proxy to 1
# if you use Lufi directly, let it commented
#
proxy => 1,
proxy
=>
1
,
# Please read http://mojolicious.org/perldoc/Mojo/Server/Hypnotoad#workers
# to adjust this to your server
...
...
This diff is collapsed.
Click to expand it.
lufi.secrets
0 → 100644
+
2
−
0
View file @
335c8310
POSTGRES_PASSWORD = passwd,
This diff is collapsed.
Click to expand it.
tini
deleted
100644 → 0
+
0
−
0
View file @
3002b5ea
File deleted
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment