Add more stuff

This commit is contained in:
zontreck 2025-02-09 20:35:26 -07:00
parent 9c5e5424c3
commit 929a428ed1
5 changed files with 33 additions and 3 deletions

8
Jenkinsfile vendored
View file

@ -246,7 +246,7 @@ pipeline {
stage("Build Blockchains") {
agent {
label 'linux'
label 'dockermain'
}
steps {
@ -254,7 +254,8 @@ pipeline {
sh '''
#!/bin/bash
docker build -t git.zontreck.com/zontreck/bitcoin:latest bitcoin
docker build -t git.zontreck.com/zontreck/bitcoin:latest bitcoin/core
docker build -t git.zontreck.com/zontreck/bitcoin:explorer bitcoin/explorer
'''
}
}
@ -262,7 +263,7 @@ pipeline {
stage("Push Blockchains") {
agent {
label 'linux'
label 'dockermain'
}
steps {
@ -271,6 +272,7 @@ pipeline {
#!/bin/bash
docker push git.zontreck.com/zontreck/bitcoin:latest
docker push git.zontreck.com/zontreck/bitcoin:explorer
'''
}
}

View file

@ -0,0 +1,22 @@
FROM git.zontreck.com/ariascreations/buildenvironments:debianbuild
USER root
WORKDIR /root
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
RUN source /root/.nvm/nvm.sh
RUN nvm install v20
WORKDIR /app
RUN git clone https://github.com/janoside/btc-rpc-explorer explorer
WORKDIR /app/explorer
RUN npm install
EXPOSE 3002
WORKDIR /
ADD ./entrypoint.sh /entrypoint.sh
RUN chmod +x entrypoint.sh
ENTRYPOINT [ "/bin/bash", "/entrypoint.sh" ]

View file

@ -0,0 +1,6 @@
#!/bin/bash
cd /app/explorer
source ~/.nvm/nvm.sh
npm start