Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
faircoind
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Show more breadcrumbs
FairCoin.Co
faircoind
Commits
6ac7233b
Commit
6ac7233b
authored
4 years ago
by
TonyFord
Browse files
Options
Downloads
Patches
Plain Diff
remove user ids
parent
34fc40b4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#1062
passed
4 years ago
Stage: build
Stage: start
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+4
-0
4 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+4
-4
4 additions, 4 deletions
Dockerfile
docker-compose.yml
+3
-3
3 additions, 3 deletions
docker-compose.yml
with
11 additions
and
7 deletions
.gitlab-ci.yml
+
4
−
0
View file @
6ac7233b
...
...
@@ -15,6 +15,8 @@ build-faircoind:
variables
:
-
$CMD =~ /build/
before_script
:
-
export RUNNER_UID=`id -u`
-
export RUNNER_GID=`id -g`
-
mkdir -p ~/.faircoin2
-
source ${FAIRCOIN_CONF}
-
echo -e "rpcconnect=${rpcconnect}\nrpcport=${rpcport}\nrpcuser=${rpcuser}\nrpcpassword=${rpcpassword}\ntxindex=1" > ~/.faircoin2/faircoin.conf
...
...
@@ -34,6 +36,8 @@ start-faircoind:
variables
:
-
$CMD =~ /build|start/
before_script
:
-
export RUNNER_UID=`id -u`
-
export RUNNER_GID=`id -g`
-
chmod +x ./script/blocknotify.sh
script
:
-
docker-compose stop
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
4
−
4
View file @
6ac7233b
...
...
@@ -35,10 +35,10 @@ RUN rm -rf /var/lib/apt/lists/* && \
#####################################################################################root##
### create and run user account to image ##################################################
ARG
GITLAB_
RUNNER_GID
ARG
GITLAB_
RUNNER_UID
RUN
groupadd
-g
$
GITLAB_
RUNNER_GID
faircoin
RUN
useradd
--create-home
--shell
/bin/bash faircoin
--uid
$
GITLAB_
RUNNER_UID
--gid
$
GITLAB_
RUNNER_GID
ARG
RUNNER_GID
ARG
RUNNER_UID
RUN
groupadd
-g
$RUNNER_GID
faircoin
RUN
useradd
--create-home
--shell
/bin/bash faircoin
--uid
$RUNNER_UID
--gid
$RUNNER_GID
USER
faircoin
#################################################################################faircoin##
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
3
−
3
View file @
6ac7233b
...
...
@@ -7,8 +7,8 @@ services:
context
:
./
args
:
source_repository
:
"
https://github.com/faircoin/faircoin.git"
GITLAB_
RUNNER_UID
:
"
${
GITLAB_
RUNNER_UID}"
GITLAB_
RUNNER_GID
:
"
${
GITLAB_
RUNNER_GID}"
RUNNER_UID
:
"
${RUNNER_UID}"
RUNNER_GID
:
"
${RUNNER_GID}"
FAIRCOIN_PORT
:
${FAIRCOIN_PORT}
env_file
:
-
../faircoind.tmp/FAIRCOIN_CONF
...
...
@@ -16,7 +16,7 @@ services:
restart
:
always
command
:
'
-disablewallet
-port=${FAIRCOIN_PORT}
-blocknotify=/home/faircoin/script/blocknotify.sh'
network_mode
:
"
host"
user
:
"
${
GITLAB_
RUNNER_UID}:${
GITLAB_
RUNNER_GID}"
user
:
"
${RUNNER_UID}:${RUNNER_GID}"
volumes
:
-
~/.faircoin2:/home/faircoin/.faircoin2
-
./script:/home/faircoin/script
...
...
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