Add a bitcoin container
This commit is contained in:
parent
d926e978b3
commit
1f669dd27e
4 changed files with 73 additions and 2 deletions
34
Jenkinsfile
vendored
34
Jenkinsfile
vendored
|
@ -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") {
|
stage("Cleanup") {
|
||||||
agent {
|
agent {
|
||||||
label 'dockermain'
|
label 'dockermain'
|
||||||
}
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
deleteDir()
|
cleanWs()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
31
bitcoin/Dockerfile
Normal file
31
bitcoin/Dockerfile
Normal 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
3
bitcoin/entrypoint.sh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
/app/bitcoind -datadir=/data -server=1 -txindex=$TXINDEX -prune=$PRUNE
|
5
build.sh
5
build.sh
|
@ -38,3 +38,8 @@ docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_proton steamcmd/p
|
||||||
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_proton8 steamcmd/proton_8
|
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_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
|
Loading…
Add table
Add a link
Reference in a new issue