Add a bitcoin container

This commit is contained in:
zontreck 2025-02-09 18:09:57 -07:00
parent d926e978b3
commit 1f669dd27e
4 changed files with 73 additions and 2 deletions

34
Jenkinsfile vendored
View file

@ -242,13 +242,45 @@ pipeline {
}
}
stage("Build Blockchains") {
agent {
label 'linux'
}
steps {
script {
sh '''
#!/bin/bash
docker build -t git.zontreck.com/zontreck/bitcoin:latest bitcoin
'''
}
}
}
stage("Push Blockchains") {
agent {
label 'linux'
}
steps {
script {
sh '''
#!/bin/bash
docker push git.zontreck.com/zontreck/bitcoin:latest
'''
}
}
}
stage("Cleanup") {
agent {
label 'dockermain'
}
steps {
deleteDir()
cleanWs()
}
}
}

31
bitcoin/Dockerfile Normal file
View file

@ -0,0 +1,31 @@
FROM git.zontreck.com/ariascreations/buildenvironments:debianbuild AS BUILDER
WORKDIR /
RUN git clone https://github.com/bitcoin/bitcoin
WORKDIR /bitcoin
RUN mkdir build
WORKDIR /bitcoin/build
RUN cmake ..
RUN make -j$(nproc)
FROM git.zontreck.com/ariascreations/buildenvironments:debianbuild
WORKDIR /app
COPY --from=BUILDER /bitcoin/build/src/bitcoind ./bitcoind
WORKDIR /
ADD ./entrypoint.sh /
RUN chmod +x entrypoint.sh
ENV TXINDEX 0
ENV PRUNE 953
EXPOSE 8333
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]

3
bitcoin/entrypoint.sh Normal file
View file

@ -0,0 +1,3 @@
#!/bin/bash
/app/bitcoind -datadir=/data -server=1 -txindex=$TXINDEX -prune=$PRUNE

View file

@ -37,4 +37,9 @@ docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_dotnet steamcmd/d
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_proton steamcmd/proton
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_proton8 steamcmd/proton_8
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_sniper steamcmd/sniper
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_ubuntu steamcmd/ubuntu
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_ubuntu steamcmd/ubuntu
# Bitcoin
docker build -t git.zontreck.com/zontreck/bitcoin:latest bitcoin