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
589bb95b
Commit
589bb95b
authored
6 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#22 Add support for browsersync in the node container
#23
Remove redunant code in node and npm
parent
612ee528
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#6639
passed
6 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 @
589bb95b
#!/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 @
589bb95b
#!/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 @
589bb95b
#!/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.
jurgenhaas
@jurgenhaas
mentioned in issue
l3d#23 (closed)
·
6 years ago
mentioned in issue
l3d#23 (closed)
mentioned in issue l3d#23
Toggle commit list
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