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
80311670
Commit
80311670
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#30
Configure Jetbrains IDEAs for remote interpreters
parent
f95aa232
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile
+1
-0
1 addition, 0 deletions
Dockerfile
configIdea.sh
+91
-0
91 additions, 0 deletions
configIdea.sh
run/scripts/start
+3
-0
3 additions, 0 deletions
run/scripts/start
start.sh
+4
-0
4 additions, 0 deletions
start.sh
with
99 additions
and
0 deletions
Dockerfile
+
1
−
0
View file @
80311670
...
...
@@ -13,6 +13,7 @@ ENV LAKEDROPS_DEV_DC_OPTIONS " "
ADD
config.fish /etc/fish/
ADD
start.sh /usr/local/bin/.start
ADD
configIdea.sh /usr/local/bin/.configIdea
RUN
echo
"Install dorgflow"
&&
\
cd
/var/opt
&&
\
...
...
This diff is collapsed.
Click to expand it.
configIdea.sh
0 → 100755
+
91
−
0
View file @
80311670
#!/bin/bash
UUID
=
b88416e8-1762-45c7-ad93-82be4fbf72a4
echo
"<?xml version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
?>
<project version=
\"
4
\"
>
<component name=
\"
RemoteMappingsManager
\"
>
<list>
<list>
<remote-mappings server-id=
\"
php@
${
UUID
}
\"
/>
</list>
</list>
</component>
</project>"
>
/drupal/.idea/remote-mappings.xml
echo
"<?xml version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
?>
<project version=
\"
4
\"
>
<component name=
\"
PhpDockerContainerSettings
\"
>
<list>
<map>
<entry key=
\"
${
UUID
}
\"
>
<value>
<DockerContainerSettings>
<option name=
\"
envVars
\"
>
<list>
<DockerEnvVarImpl>
<option name=
\"
name
\"
value=
\"
COMPOSE_PROJECT_NAME
\"
/>
<option name=
\"
value
\"
value=
\"
${
COMPOSE_PROJECT_NAME
}
\"
/>
</DockerEnvVarImpl>
<DockerEnvVarImpl>
<option name=
\"
name
\"
value=
\"
PHP_VERSION
\"
/>
<option name=
\"
value
\"
value=
\"
${
PHP_VERSION
}
\"
/>
</DockerEnvVarImpl>
<DockerEnvVarImpl>
<option name=
\"
name
\"
value=
\"
SSH_AUTH_SOCK
\"
/>
<option name=
\"
value
\"
value=
\"
/ssh-agent
\"
/>
</DockerEnvVarImpl>
</list>
</option>
<option name=
\"
version
\"
value=
\"
1
\"
/>
<option name=
\"
volumeBindings
\"
>
<list>
<DockerVolumeBindingImpl>
<option name=
\"
containerPath
\"
value=
\"
/drupal
\"
/>
<option name=
\"
hostPath
\"
value=
\"
${
WORKDIR
}
\"
/>
</DockerVolumeBindingImpl>
<DockerVolumeBindingImpl>
<option name=
\"
containerPath
\"
value=
\"
/ssh-agent
\"
/>
<option name=
\"
hostPath
\"
value=
\"
${
SSHAUTH
}
\"
/>
</DockerVolumeBindingImpl>
<DockerVolumeBindingImpl>
<option name=
\"
containerPath
\"
value=
\"
/var/run/docker.sock
\"
/>
<option name=
\"
hostPath
\"
value=
\"
/var/run/docker.sock
\"
/>
</DockerVolumeBindingImpl>
<DockerVolumeBindingImpl>
<option name=
\"
containerPath
\"
value=
\"
/root/.traefik
\"
/>
<option name=
\"
hostPath
\"
value=
\"
${
HOMEDIR
}
/.traefik
\"
/>
</DockerVolumeBindingImpl>
<DockerVolumeBindingImpl>
<option name=
\"
containerPath
\"
value=
\"
/root/.gitconfig
\"
/>
<option name=
\"
hostPath
\"
value=
\"
${
HOMEDIR
}
/.gitconfig
\"
/>
</DockerVolumeBindingImpl>
<DockerVolumeBindingImpl>
<option name=
\"
containerPath
\"
value=
\"
/root/.composer/auth.json
\"
/>
<option name=
\"
hostPath
\"
value=
\"
${
HOMEDIR
}
/.composer/auth.json
\"
/>
</DockerVolumeBindingImpl>
</list>
</option>
</DockerContainerSettings>
</value>
</entry>
</map>
</list>
</component>
</project>"
>
/drupal/.idea/php-docker-settings.xml
This diff is collapsed.
Click to expand it.
run/scripts/start
+
3
−
0
View file @
80311670
...
...
@@ -43,6 +43,9 @@ function startContainer {
registry.lakedrops.com/docker/l3d/php-
${
PHP_VERSION
}
:
${
VERSION
}
fi
docker
exec
-it
\
--env
HOMEDIR
=
${
HOMEDIR
}
\
--env
WORKDIR
=
${
WORKDIR
}
\
--env
SSHAUTH
=
${
SSHAUTH
}
\
${
COMPOSE_PROJECT_NAME
}
_l3d
\
/usr/local/bin/.start
fi
...
...
This diff is collapsed.
Click to expand it.
start.sh
+
4
−
0
View file @
80311670
...
...
@@ -163,6 +163,10 @@ if [[ -z "$EXISTING" ]]; then
fi
fi
if
[[
-d
/drupal/.idea
]]
;
then
/usr/local/bin/.configIdea
fi
if
[[
-x
"
${
L3DSHELL
}
"
]]
;
then
${
L3DSHELL
}
else
...
...
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