Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-ICEcoder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
External 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
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Griefed
docker-ICEcoder
Commits
43058840
Commit
43058840
authored
4 years ago
by
Griefed
Browse files
Options
Downloads
Patches
Plain Diff
Fix links, permissions, initial setup
parent
904a63ac
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+7
-11
7 additions, 11 deletions
Dockerfile
root/etc/cont-init.d/50-install
+1
-1
1 addition, 1 deletion
root/etc/cont-init.d/50-install
root/etc/cont-init.d/60-config
+10
-8
10 additions, 8 deletions
root/etc/cont-init.d/60-config
with
18 additions
and
20 deletions
Dockerfile
+
7
−
11
View file @
43058840
...
...
@@ -66,18 +66,14 @@ RUN \
zip
&&
\
echo
"**** configure php, including symlink ****"
&&
\
ln
-sf
\
/usr/bin/php7
\
/usr/bin/php
&&
\
/usr/bin/php7
\
/usr/bin/php
&&
\
sed
-i
\
-e
"s#
\o
utput_buffering =.*#
\o
utput_buffering =
\o
ff#g"
\
-e
"s/post_max_size =.*
$/
post_max_size = 1560M/"
\
-e
"s/upload_max_filesize =.*
$/
upload_max_filesize = 2048M/"
\
-e
's#;session.save_path = "/tmp"#session.save_path = "/config/sess"#g'
\
/etc/php7/php.ini
&&
\
echo
"**** Cleanup ****"
&&
\
rm
-rf
\
/root/.cache
\
/tmp/
*
&&
\
-e
"s#
\o
utput_buffering =.*#
\o
utput_buffering =
\o
ff#g"
\
-e
"s/post_max_size =.*
$/
post_max_size = 1560M/"
\
-e
"s/upload_max_filesize =.*
$/
upload_max_filesize = 2048M/"
\
-e
's#;session.save_path = "/tmp"#session.save_path = "/config/sess"#g'
\
/etc/php7/php.ini
&&
\
echo
"**** Misc ****"
&&
\
echo
${
ICECODER_VERSION
}
>
/version.txt
...
...
This diff is collapsed.
Click to expand it.
root/etc/cont-init.d/
4
0-install
→
root/etc/cont-init.d/
5
0-install
+
1
−
1
View file @
43058840
#!/usr/bin/with-contenv bash
ICECODER_VERSION
=
$(
cat
/version.txt
)
if
[
!
-f
"/
config/www
/ICEcoder/index.php"
]
;
then
if
[
!
-f
"/
app
/ICEcoder/index.php"
]
;
then
curl
-o
/tmp/install.zip
-L
\
"https://github.com/icecoder/ICEcoder/archive/
${
ICECODER_VERSION
}
.zip"
cd
/tmp
||
exit
...
...
This diff is collapsed.
Click to expand it.
root/etc/cont-init.d/
5
0-config
→
root/etc/cont-init.d/
6
0-config
+
10
−
8
View file @
43058840
...
...
@@ -6,13 +6,15 @@ ln -sf /plugins /app/ICEcoder/plugins
# permissions
chown
-R
abc:abc
\
/config
\
/data
\
/plugins
/config
\
/data
\
/plugins
echo
"[cont-init.d] Checking for lock.file"
# check for lock file to only run git operations once
if
[
!
-e
/lock.file
]
;
then
# Give abc a sudo shell for development
echo
"Lock does not exist, cloning repository"
chsh abc
-s
/bin/bash
sed
-e
's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/g'
\
-i
/etc/sudoers
...
...
@@ -26,7 +28,7 @@ if [ ! -e /lock.file ]; then
fi
else
# lock exists not importing project this is a restart
echo
"Lock exists just starting
pylon
"
echo
"Lock exists just starting
ICEcoder
"
fi
# create lock file after first run
...
...
@@ -41,9 +43,9 @@ cp /config/php/php.ini /etc/php7/php.ini
mkdir
-p
/config/sessions
echo
"[cont-init.d] Setting permissions this may take some time"
chown
-R
abc:abc
\
/data
\
/config
\
/plugins
/data
\
/config
\
/plugins
# make our folders
mkdir
-p
\
/config/
{
log/ICEcoder,php,sess
}
/config/
{
log/ICEcoder,php,sess
}
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