Skip to content

Commit

Permalink
add prune to config and switch to mainnet for 1.14.7
Browse files Browse the repository at this point in the history
  • Loading branch information
xanimo committed Mar 3, 2024
1 parent 443cdae commit 243eef4
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 24 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.cache
*.py[cod]
__pycache__/
.env
7 changes: 4 additions & 3 deletions 1.14.5/bullseye/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"""
import argparse
import os
import pwd
# import pwd
import shutil
import sys
Expand Down Expand Up @@ -134,9 +135,9 @@ def run_executable(executable, executable_args):

#Switch process from root to user.
#Equivalent to use gosu or su-exec
# user_info = pwd.getpwnam(os.environ['USER'])
# os.setgid(user_info.pw_gid)
# os.setuid(user_info.pw_uid)
user_info = pwd.getpwnam(os.environ['USER'])
os.setgid(user_info.pw_gid)
os.setuid(user_info.pw_uid)

#Run container command
return execute(executable, executable_args)
Expand Down
7 changes: 4 additions & 3 deletions 1.14.6/bullseye/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"""
import argparse
import os
import pwd
# import pwd
import shutil
import sys
Expand Down Expand Up @@ -134,9 +135,9 @@ def run_executable(executable, executable_args):

#Switch process from root to user.
#Equivalent to use gosu or su-exec
# user_info = pwd.getpwnam(os.environ['USER'])
# os.setgid(user_info.pw_gid)
# os.setuid(user_info.pw_uid)
user_info = pwd.getpwnam(os.environ['USER'])
os.setgid(user_info.pw_gid)
os.setuid(user_info.pw_uid)

#Run container command
return execute(executable, executable_args)
Expand Down
12 changes: 0 additions & 12 deletions 1.14.7/bullseye/.env

This file was deleted.

5 changes: 3 additions & 2 deletions 1.14.7/bullseye/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ echo rpcuser=dogecoin >> dogecoin.conf
echo $rpcauth >> dogecoin.conf
echo rpcpassword=$rpcpassword >> dogecoin.conf
echo harddustlimit=0.001 >> dogecoin.conf
echo reindex=1
echo txindex=1
echo reindex=1 >> dogecoin.conf
echo txindex=1 >> dogecoin.conf
echo prune=2000 >> dogecoin.conf
cat dogecoin.conf > .env

docker build --no-cache --build-arg "APP_UID=$(id -u $USER)" --build-arg "APP_GID=$(id -g $USER)" --build-arg "USER=dogecoin" -t xanimo/dogecoin:1.14.7 .
Expand Down
3 changes: 2 additions & 1 deletion 1.14.7/bullseye/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ services:
- dogecoin:/home/dogecoin/.dogecoin
env_file:
- .env
command:

volumes:
dogecoin:
driver: local
driver_opts:
o: bind
type: none
device: /mnt/volumes/.dogecoin
device: /mnt/volumes/.dogecoin
7 changes: 4 additions & 3 deletions 1.14.7/bullseye/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"""
import argparse
import os
import pwd
# import pwd
import shutil
import sys
Expand Down Expand Up @@ -134,9 +135,9 @@ def run_executable(executable, executable_args):

#Switch process from root to user.
#Equivalent to use gosu or su-exec
# user_info = pwd.getpwnam(os.environ['USER'])
# os.setgid(user_info.pw_gid)
# os.setuid(user_info.pw_uid)
user_info = pwd.getpwnam(os.environ['USER'])
os.setgid(user_info.pw_gid)
os.setuid(user_info.pw_uid)

#Run container command
return execute(executable, executable_args)
Expand Down

0 comments on commit 243eef4

Please sign in to comment.