mirror of
https://github.com/fluencelabs/node-distro
synced 2025-04-24 23:12:13 +00:00
Add ipfs-adapter builtin (#4)
This commit is contained in:
parent
d3545afa0d
commit
ad6b864555
5
.github/workflows/container.yml
vendored
5
.github/workflows/container.yml
vendored
@ -4,6 +4,9 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- ipfs-adapter
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -30,7 +33,7 @@ jobs:
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
|
||||
### Build and push docker image
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
|
12
Dockerfile
12
Dockerfile
@ -1,9 +1,9 @@
|
||||
### NOTE: original linuxserver.org docker-ipfs image also builds & runs migrations.
|
||||
### If needed, go to https://github.com/linuxserver/docker-ipfs to see how it's done.
|
||||
|
||||
|
||||
FROM ipfs/go-ipfs:v0.9.0 as ipfs
|
||||
|
||||
FROM fluencelabs/fluence:vault as fluence
|
||||
FROM fluencelabs/fluence:latest as fluence
|
||||
|
||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:bionic
|
||||
|
||||
@ -40,10 +40,12 @@ RUN \
|
||||
rm -rf \
|
||||
/tmp/* \
|
||||
/var/lib/apt/lists/* \
|
||||
/var/tmp/*
|
||||
/var/tmp/* && \
|
||||
echo "**** download ipfs-adapter ****" && \
|
||||
curl https://github.com/fluencelabs/ipfs-adapter/releases/latest/download/ipfs-adapter.tar.gz -L | tar -zxv -C /builtins/
|
||||
|
||||
# copy configs
|
||||
# NOTE: copy configs should be after installing packages because
|
||||
# copy configs
|
||||
# NOTE: copy configs should be after installing packages because
|
||||
# configs may replace default configs of installed packages
|
||||
COPY s6/root/ /
|
||||
|
||||
|
@ -19,15 +19,15 @@ services:
|
||||
- fluence:/.fluence
|
||||
networks:
|
||||
- fluence
|
||||
|
||||
|
||||
env.json:
|
||||
restart: "no"
|
||||
# depends_on:
|
||||
# depends_on:
|
||||
# - fluence
|
||||
image: busybox:stable
|
||||
volumes:
|
||||
volumes:
|
||||
- env.json:/env
|
||||
command:
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
@ -43,16 +43,16 @@ services:
|
||||
EOF
|
||||
|
||||
dashboard:
|
||||
depends_on:
|
||||
depends_on:
|
||||
- env.json
|
||||
image: fluencelabs/dashboard:latest
|
||||
volumes:
|
||||
- env.json:/dist/env
|
||||
networks:
|
||||
networks:
|
||||
- fluence
|
||||
ports:
|
||||
- 8080:8080
|
||||
|
||||
|
||||
volumes:
|
||||
fluence: null
|
||||
env.json: null
|
||||
|
Loading…
x
Reference in New Issue
Block a user