Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GitLab Drupal CI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
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
GitLab Drupal CI
Commits
b6193dff
Commit
b6193dff
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
7b4696a9
589bb95b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#9002
failed
5 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/node
+1
-8
1 addition, 8 deletions
bin/node
bin/node_cmd
+24
-0
24 additions, 0 deletions
bin/node_cmd
bin/npm
+1
-8
1 addition, 8 deletions
bin/npm
with
26 additions
and
16 deletions
bin/node
+
1
−
8
View file @
b6193dff
#!/bin/bash
NAME
=
${
COMPOSE_PROJECT_NAME
}
_l3d_node
ID
=
$(
docker container
ls
--all
-q
-f
name
=
^
${
NAME
}
$)
if
[[
-n
${
ID
}
]]
;
then
docker start
${
NAME
}
>
/dev/null
else
docker run
--init
-itd
--name
=
${
NAME
}
-v
$(
php /usr/local/bin/volume.php
)
-w
${
PWD
}
registry.lakedrops.com/docker/node:8-jessie-slim
>
/dev/null
fi
docker
exec
-it
-w
${
PWD
}
${
NAME
}
node
$@
NODE_CMD
=
node node_cmd
$@
This diff is collapsed.
Click to expand it.
bin/node_cmd
0 → 100755
+
24
−
0
View file @
b6193dff
#!/bin/bash
NAME
=
${
COMPOSE_PROJECT_NAME
}
_l3d_node
ID
=
$(
docker container
ls
--all
-q
-f
name
=
^
${
NAME
}
$)
if
[[
-n
${
ID
}
]]
;
then
docker start
${
NAME
}
>
/dev/null
else
docker run
--init
-itd
--name
=
${
NAME
}
\
--network
traefik_
${
COMPOSE_PROJECT_NAME
}
\
--label
traefik.backend
=
${
NAME
}
\
--label
traefik.frontend.rule
=
"Host:bs.
${
COMPOSE_PROJECT_NAME
}
.docker.localhost"
\
--label
traefik.port
=
3000
\
--label
traefik.site.backend
=
${
NAME
}
\
--label
traefik.site.frontend.rule
=
"Host:bs.
${
COMPOSE_PROJECT_NAME
}
.docker.localhost"
\
--label
traefik.site.port
=
3000
\
--label
traefik.ui.backend
=
ui-
${
NAME
}
\
--label
traefik.ui.frontend.rule
=
"Host:bs-ui.
${
COMPOSE_PROJECT_NAME
}
.docker.localhost"
\
--label
traefik.ui.port
=
3001
\
--env
COMPOSE_PROJECT_NAME
=
${
COMPOSE_PROJECT_NAME
}
\
-v
$(
php /usr/local/bin/volume.php
)
\
-w
${
PWD
}
\
registry.lakedrops.com/docker/node:8-jessie-slim
>
/dev/null
fi
docker
exec
-it
-w
${
PWD
}
${
NAME
}
${
NODE_CMD
}
$@
This diff is collapsed.
Click to expand it.
bin/npm
+
1
−
8
View file @
b6193dff
#!/bin/bash
NAME
=
${
COMPOSE_PROJECT_NAME
}
_l3d_node
ID
=
$(
docker container
ls
--all
-q
-f
name
=
^
${
NAME
}
$)
if
[[
-n
${
ID
}
]]
;
then
docker start
${
NAME
}
>
/dev/null
else
docker run
--init
-itd
--name
=
${
NAME
}
-v
$(
php /usr/local/bin/volume.php
)
-w
${
PWD
}
registry.lakedrops.com/docker/node:8-jessie-slim
>
/dev/null
fi
docker
exec
-it
-w
${
PWD
}
${
NAME
}
npm
$@
NODE_CMD
=
npm node_cmd
$@
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