Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FoD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Show more breadcrumbs
David Schmitz
FoD
Commits
ac09a232
Commit
ac09a232
authored
5 years ago
by
Tomáš Čejka
Browse files
Options
Downloads
Patches
Plain Diff
docker: swith default dockerfile to centos system
parent
f16b3b00
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+8
-11
8 additions, 11 deletions
Dockerfile
Dockerfile.centos
+0
-21
0 additions, 21 deletions
Dockerfile.centos
Dockerfile.debian
+24
-0
24 additions, 0 deletions
Dockerfile.debian
with
32 additions
and
32 deletions
Dockerfile
+
8
−
11
View file @
ac09a232
FROM
debian:buster
FROM
centos:7
ENV
LC_ALL en_US.utf8
RUN
apt-get update
RUN
echo
"Set up container's locales"
RUN
echo
-e
'LANG="en_US.UTF-8"\nLANGUAGE="en_US"\n'
>
/etc/default/locale
RUN
echo
"en_US.utf8 UTF-8"
>>
/etc/locale.gen
RUN
apt-get
-qqy
install
locales
RUN
yum
-y
install
procps
RUN
mkdir
-p
/var/log/fod /srv
COPY
. /srv/flowspy
RUN
apt-get
-qqy
install
patch
RUN
(
cd
/srv/flowspy/flowspy
&&
cp
-f
settings.py.dist settings.py
&&
patch settings.py < settings.py.patch
&&
touch
settings_local.py
;
)
RUN
(
cd
/srv/flowspy
;
./install-centos.sh
;
)
RUN
(
cd
/srv/flowspy
;
bash ./install-debian.sh
;
)
# echo "To set environment to English, run: export LC_ALL=en_US"
# echo "To activate virualenv: source /srv/venv/bin/activate"
# echo "To create a user run: cd /srv/flowspy; ./manage.py createsuperuser"
# echo "To start flowspy server: cd /srv/flowspy; ./manage.py runserver 0.0.0.0:8000"
# echo "To start celeryd: cd /srv/flowspy; ./manage.py celeryd"
EXPOSE
8000
WORKDIR
/srv/flowspy
CMD
[ "/srv/flowspy/runfod.sh" ]
This diff is collapsed.
Click to expand it.
Dockerfile.centos
deleted
100644 → 0
+
0
−
21
View file @
f16b3b00
FROM centos:7
ENV LC_ALL en_US.utf8
RUN yum -y install procps
RUN mkdir -p /var/log/fod /srv
COPY . /srv/flowspy
RUN (cd /srv/flowspy; ./install-centos.sh;)
# echo "To set environment to English, run: export LC_ALL=en_US"
# echo "To activate virualenv: source /srv/venv/bin/activate"
# echo "To create a user run: cd /srv/flowspy; ./manage.py createsuperuser"
# echo "To start flowspy server: cd /srv/flowspy; ./manage.py runserver 0.0.0.0:8000"
# echo "To start celeryd: cd /srv/flowspy; ./manage.py celeryd"
EXPOSE 8000
CMD [ "/srv/flowspy/runfod.sh" ]
This diff is collapsed.
Click to expand it.
Dockerfile.debian
0 → 100644
+
24
−
0
View file @
ac09a232
FROM debian:buster
ENV LC_ALL en_US.utf8
RUN apt-get update
RUN echo "Set up container's locales"
RUN echo -e 'LANG="en_US.UTF-8"\nLANGUAGE="en_US"\n' > /etc/default/locale
RUN echo "en_US.utf8 UTF-8" >> /etc/locale.gen
RUN apt-get -qqy install locales
RUN mkdir -p /var/log/fod /srv
COPY . /srv/flowspy
RUN apt-get -qqy install patch
RUN (cd /srv/flowspy/flowspy && cp -f settings.py.dist settings.py && patch settings.py < settings.py.patch && touch settings_local.py;)
RUN (cd /srv/flowspy; bash ./install-debian.sh;)
EXPOSE 8000
WORKDIR /srv/flowspy
CMD [ "/srv/flowspy/runfod.sh" ]
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