Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Toolkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
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
digital blueprint
Web Component Framework
Toolkit
Commits
5b948b29
Commit
5b948b29
authored
5 years ago
by
Reiter, Christoph
Browse files
Options
Downloads
Patches
Plain Diff
Don't run CI jobs as root
parent
7ba8e977
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
packages/common/.gitlab-ci.yml
+1
-5
1 addition, 5 deletions
packages/common/.gitlab-ci.yml
packages/common/.gitlab-ci/Dockerfile
+11
-3
11 additions, 3 deletions
packages/common/.gitlab-ci/Dockerfile
packages/common/.gitlab-ci/build.sh
+1
-1
1 addition, 1 deletion
packages/common/.gitlab-ci/build.sh
with
13 additions
and
9 deletions
packages/common/.gitlab-ci.yml
+
1
−
5
View file @
5b948b29
image
:
debian:buster
image
:
registry.gitlab.tugraz.at/vpu/webcomponents/common/main:v2
before_script
:
-
apt update
-
apt install -y git
-
"
sed
-i
's|git@gitlab.tugraz.at:VPU|../..|g'
.gitmodules"
-
git submodule sync
-
git submodule update --init
...
...
@@ -13,7 +11,5 @@ stages:
test
:
stage
:
test
script
:
-
apt update
-
apt install -y npm chromium
-
npm install
-
npm test
This diff is collapsed.
Click to expand it.
packages/common/.gitlab-ci/Dockerfile
+
11
−
3
View file @
5b948b29
...
...
@@ -5,13 +5,21 @@ ENV DEBIAN_FRONTEND noninteractive
RUN
apt-get update
&&
apt-get
install
-y
\
git
\
curl
curl
\
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
curl
-sL
https://deb.nodesource.com/setup_12.x | bash -
RUN
curl
-sL
https://deb.nodesource.com/setup_12.x | bash -
\
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
apt-get update
&&
apt-get
install
-y
\
nodejs
\
chromium-browser
\
firefox
\
composer
\
rsync
\ No newline at end of file
rsync
\
sudo
\
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
useradd
-u
1000
-ms
/bin/bash user
RUN
echo
'user ALL=(ALL) NOPASSWD:ALL'
>>
/etc/sudoers
USER
user
This diff is collapsed.
Click to expand it.
packages/common/.gitlab-ci/build.sh
+
1
−
1
View file @
5b948b29
#!/bin/bash
set
-e
TAG
=
"registry.gitlab.tugraz.at/vpu/webcomponents/common/main:v
1
"
TAG
=
"registry.gitlab.tugraz.at/vpu/webcomponents/common/main:v
2
"
sudo
docker build
--tag
"
${
TAG
}
"
--file
"Dockerfile"
.
echo
"Now run: sudo docker push '
$TAG
'"
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