Added the ability to customize portainer, especially the frontend app 💅

master
Meliurwen 4 years ago
parent b17a96400d
commit 675e748316
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 10
      README.md
  2. 5
      portainer/Dockerfile
  3. 0
      portainer/root_builder/client_build_prod.patch
  4. 4
      portainer/root_builder/custom/.gitignore
  5. 0
      portainer/root_builder/remove_telemetry.patch

@ -2,7 +2,15 @@
Unofficial build of Portainer 100% telemetry-free!
## Run
## Customize
Simply place your custom files in [this](portainer/root_builder/custom) folder following the direcotry tree of the [Official Portainer's repo](https://github.com/portainer/portainer).
Your files will replace the original ones after the frontend app is patched, but before it is built.
+ **Custom Dir**: `portainer/root_builder/custom`
## Build and Run
Build the patched images and run:

@ -4,7 +4,7 @@ ARG GOOS
ARG GOARCH
ARG GIT_TAG
COPY remove_telemetry.patch /
COPY root_builder/remove_telemetry.patch /
RUN apk --update add git patch && \
git clone --depth 1 --branch $GIT_TAG https://github.com/portainer/portainer.git && \
@ -16,13 +16,14 @@ FROM node:latest AS builder-client
ARG GIT_TAG
COPY *.patch /
COPY root_builder /
RUN apt-get update && apt-get install git && \
git clone --depth 1 --branch $GIT_TAG https://github.com/portainer/portainer.git && \
cd portainer && \
patch -p0 < /client_build_prod.patch && \
git apply /remove_telemetry.patch && \
cp -R /custom/* . && \
yarn && \
yarn build:client

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
Loading…
Cancel
Save