Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LakeDropsDrupalDev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
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
Docker
LakeDropsDrupalDev
Commits
bf056dc2
Commit
bf056dc2
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#47
Optionally downgrade composer to version 1
parent
d05f2cf2
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
run/scripts/start
+11
-0
11 additions, 0 deletions
run/scripts/start
setup/scripts/l3d
+1
-0
1 addition, 0 deletions
setup/scripts/l3d
start.sh
+3
-0
3 additions, 0 deletions
start.sh
with
15 additions
and
0 deletions
run/scripts/start
+
11
−
0
View file @
bf056dc2
...
...
@@ -14,6 +14,16 @@ function getConfig {
esac
done
fi
if
[[
!
-n
${
COMPOSER_DOWNGRADE
}
]]
;
then
while
true
;
do
read
-p
"Do you want to downgrade Composer to version 1? "
COMPOSER_DOWNGRADE
case
${
COMPOSER_DOWNGRADE
}
in
0
)
break
;;
1
)
break
;;
*
)
echo
"Only 1 or 0 are valid responses."
;;
esac
done
fi
if
[[
!
-n
${
COMPOSE_PROJECT_NAME
}
]]
;
then
read
-p
"Name your project (used as subdomain): "
COMPOSE_PROJECT_NAME
fi
...
...
@@ -29,6 +39,7 @@ function startContainer {
--hostname
${
COMPOSE_PROJECT_NAME
}
-l3d
\
--env
L3DSHELL
=
${
L3DSHELL
}
\
--env
COMPOSE_PROJECT_NAME
=
${
COMPOSE_PROJECT_NAME
}
\
--env
COMPOSER_DOWNGRADE
=
${
COMPOSER_DOWNGRADE
}
\
--env
PHP_VERSION
=
${
PHP_VERSION
}
\
--env
SSH_AUTH_SOCK
=
${
SSHAUTHSOCK
}
\
--volume
/var/run/docker.sock:/var/run/docker.sock
\
...
...
This diff is collapsed.
Click to expand it.
setup/scripts/l3d
+
1
−
0
View file @
bf056dc2
...
...
@@ -54,5 +54,6 @@ docker exec -it \
--env
SSHAUTHSOCK
=
${
SSHAUTHSOCK
}
\
--env
PHP_VERSION
=
${
PHP_VERSION
}
\
--env
COMPOSE_PROJECT_NAME
=
${
COMPOSE_PROJECT_NAME
}
\
--env
COMPOSER_DOWNGRADE
=
${
COMPOSER_DOWNGRADE
}
\
l3drun
\
/usr/local/bin/run
$@
This diff is collapsed.
Click to expand it.
start.sh
+
3
−
0
View file @
bf056dc2
...
...
@@ -181,6 +181,9 @@ function initialSetup {
}
readEnv
if
[[
"
$COMPOSER_DOWNGRADE
"
==
"1"
]]
;
then
composer self-update
--1
fi
EXISTING
=
$(
ls
-1
)
if
[[
-z
"
$EXISTING
"
]]
;
then
if
[[
-n
${
PROJECT
}
]]
;
then
...
...
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