8000 ADD: (Logs) Remove suppression in docker by TechDufus · Pull Request #101 · Qortal/qortal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ADD: (Logs) Remove suppression in docker #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 54 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
24adc71
Trying to run in container, can't background process.
TechDufus Sep 13, 2022
423514b
fixing line continuation.
TechDufus Sep 22, 2022
f6d5f1b
adding settings
TechDufus Sep 22, 2022
afef111
Allow BTC trades in redeemAll / refundAll, since most will now be usi…
archived-2 Sep 16, 2022
23a4e5e
Added support for ARRR refunds via /crosschain/htlc/refund/{ataddress…
archived-2 Sep 17, 2022
2b3b38b
Added support for Pirate Chain wallets on FreeBSD.
archived-2 Sep 17, 2022
dc23195
ChatTransaction MAX_DATA_SIZE increased from 256 to 1024 bytes, to al…
archived-2 Sep 17, 2022
63160c1
Added GET /chat/message/{signature} endpoint.
archived-2 Sep 17, 2022
5e61fe3
Use path parameter instead of query string.
archived-2 Sep 17, 2022
b8895c4
OnlineAccountsV3Message.MIN_PEER_VERSION set to 3.6.0
archived-2 Sep 19, 2022
04e4767
QORA / block reward adjustments set to activate at height 1010000
archived-2 Sep 19, 2022
216a21b
Bump version to 3.6.0
archived-2 Sep 19, 2022
9722177
Reordered code in Block.mint() to fix potential issue after mempow ac…
archived-2 Sep 20, 2022
2ee1829
Fixed bug causing error 500 in some cases.
archived-2 Sep 20, 2022
bc4fa00
Removed online accounts V2 and V1 messaging, as the V3 format will so…
archived-2 Sep 23, 2022
1eea3e9
Don't add online accounts to the import queue if they are already val…
archived-2 Sep 23, 2022
f131477
Wait 30 seconds after the node starts before computing our online acc…
archived-2 Sep 23, 2022
74f4457
Allow duplicate variations of each OnlineAccountData in the import qu…
archived-2 Sep 23, 2022
741c5c4
When validating online accounts, enforce mempow if the online account…
archived-2 Sep 23, 2022
8099a57
Set hasOurOnlineAccounts to true if one of our accounts is found befo…
archived-2 Sep 24, 2022
09a577d
Add accounts from the import queue individually, and then skip future…
archived-2 Sep 24, 2022
24def5a
Modified online accounts request interval, and introduced bursting.
archived-2 Sep 24, 2022
58bdddd
Moved various online accounts logs to TRACE level, to make it easier …
archived-2 Sep 24, 2022
a690789
Initial work on BLOCK_SUMMARIES_V2, part of a bigger arc to improve s…
catbref May 31, 2022
5510418
BlockSummariesV2Message.MINIMUM_PEER_VERSION set to 3.6.1
archived-2 Sep 24, 2022
77a4a87
Fixed error in rebase.
archived-2 Sep 24, 2022
6d91cbf
Fixed Synchronizer.getBlockSummaries() which was expecting BLOCK_SUMM…
archived-2 Sep 24, 2022
41438e1
Moved error to debug, as we now get a burst of these soon after start…
archived-2 Sep 24, 2022
e2342e2
Fixed bug which required a node to hold local trade presences before …
archived-2 Sep 24, 2022
eac2407
Include total count in debug trade presence logging
archived-2 Sep 24, 2022
2f1dc18
Added optional filtering by reference in GET /chat/messages
archived-2 Sep 25, 2022
2b3f627
Revert "Allow duplicate variations of each OnlineAccountData in the i…
archived-2 Sep 25, 2022
238c88c
Yet another attempt to optimize the online accounts import queue proc…
archived-2 Sep 25, 2022
b52cea0
Fixed bug in last commit.
archived-2 Sep 25, 2022
5fed38b
Fixed issue causing startup of various components to be delayed by 30…
archived-2 Sep 25, 2022
25886d1
Renamed constant for consistency
archived-2 Sep 25, 2022
27104a6
Reintroduced initial sleep period in block archiver.
archived-2 Sep 25, 2022
d7d0848
Return empty levels in GET /addresses/online/levels
archived-2 Oct 3, 2022
6fee2c3
Bump version to 3.6.1
archived-2 Oct 4, 2022
05e5733
Catch JSON exceptions in PirateChainWalletController.
archived-2 Oct 5, 2022
04a30a9
Limit to 240 blocks in syncToPeerChain().
archived-2 Oct 7, 2022
c61d1ee
Skip GET_BLOCK_SUMMARIES requests if it can already be fulfilled enti…
archived-2 Oct 7, 2022
6d18708
Reduce INITIAL_BLOCK_STEP from 8 to 7.
archived-2 Oct 7, 2022
8619cb4
Mark start/stop scripts as executables
Nuc1eoN Oct 7, 2022
8f551fd
Revert "Skip GET_BLOCK_SUMMARIES requests if it can already be fulfil…
archived-2 Oct 9, 2022
d0a637e
Revert "Reduce INITIAL_BLOCK_STEP from 8 to 7."
archived-2 Oct 9, 2022
c3d225f
Always use BlockSummariesMessage V1 (instead of V2) when responding t…
archived-2 Oct 9, 2022
cfa55af
GenericUnknownMessage.MINIMUM_PEER_VERSION set to 3.6.1.
archived-2 Oct 9, 2022
a7f0bac
Discard BLOCK_SUMMARIES_V2 messages with an ID (thanks to @catbref fo…
archived-2 Oct 10, 2022
38d52b9
Revert "Always use BlockSummariesMessage V1 (instead of V2) when resp…
archived-2 Oct 10, 2022
20e20f4
Bump version to 3.6.2
archived-2 Oct 10, 2022
d1db2fc
Fix for issue in BLOCK_SUMMARIES_V2 when sending an empty array of su…
archived-2 Oct 12, 2022
09480a3
Bump version to 3.6.3
archived-2 Oct 12, 2022
10000
8242ce4
Merge branch 'Qortal:master' into master
TechDufus Oct 13, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
FROM maven:3-openjdk-11 as builder


WORKDIR /work
COPY ./ /work/
COPY . .
RUN mvn clean package

###
FROM openjdk:11

RUN useradd -r -u 1000 -g users qortal && \
mkdir /usr/local/qortal /qortal && \
mkdir /qortal && \
chown 1000:100 /qortal

COPY --from=builder /work/log4j2.properties /usr/local/qortal/
COPY --from=builder /work/target/qortal*.jar /usr/local/qortal/qortal.jar

COPY --from=builder /work/log4j2.properties /qortal/
COPY --from=builder /work/target/qortal*.jar /qortal/qortal.jar
COPY --from=builder /work/start.sh /qortal/
COPY --from=builder /work/settings.json /qortal/
USER 1000:100

EXPOSE 12391 12392
Expand All @@ -22,5 +24,11 @@ HEALTHCHECK --start-period=5m CMD curl -sf http://127.0.0.1:12391/admin/info ||
WORKDIR /qortal
VOLUME /qortal

ENTRYPOINT ["java"]
CMD ["-Djava.net.preferIPv4Stack=false", "-jar", "/usr/local/qortal/qortal.jar"]
## ENTRYPOINT ["java"]
## CMD ["-Djava.net.preferIPv4Stack=false", "-jar", "/usr/local/qortal/qortal.jar"]

ENTRYPOINT ["/qortal/start.sh"]
CMD ["docker"]



39 changes: 26 additions & 13 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@

# There's no need to run as root, so don't allow it, for security reasons
if [ "$USER" = "root" ]; then
echo "Please su to non-root user before running"
exit
echo "Please su to non-root user before running"
exit
fi

# If docker is passed, then we want to change the behavior of the script
# to change the log suppression
if [ "$1" = "docker" ]; then
DOCKER=true
fi



# Validate Java is installed and the minimum version is available
MIN_JAVA_VER='11'

Expand All @@ -26,8 +34,8 @@ fi
# No qortal.jar but we have a Maven built one?
# Be helpful and copy across to correct location
if [ ! -e qortal.jar -a -f target/qortal*.jar ]; then
echo "Copying Maven-built Qortal JAR to correct pathname"
cp target/qortal*.jar qortal.jar
echo "Copying Maven-built Qortal JAR to correct pathname"
cp target/qortal*.jar qortal.jar
fi

# Limits Java JVM stack size and maximum heap usage.
Expand All @@ -39,12 +47,17 @@ fi
# by default in Java 11, on some platforms (e.g. FreeBSD 12),
# it is overridden to be true by default. Hence we explicitly
# set it to false to obtain desired behaviour.
nohup nice -n 20 java \
-Djava.net.preferIPv4Stack=false \
${JVM_MEMORY_ARGS} \
-jar qortal.jar \
1>run.log 2>&1 &

# Save backgrounded process's PID
echo $! > run.pid
echo qortal running as pid $!

if [ "$DOCKER" = true ]; then
java -Djava.net.preferIPv4Stack=false $JVM_MEMORY_ARGS -jar qortal.jar
else
nohup nice -n 20 java \
-Djava.net.preferIPv4Stack=false \
${JVM_MEMORY_ARGS} \
-jar qortal.jar
# Save backgrounded process's PID
echo $! > run.pid
echo qortal running as pid $!
fi


318D
0