mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-17 12:42:16 +01:00
updating some folders names
This commit is contained in:
@@ -38,14 +38,14 @@ COPY . .
|
|||||||
# Installs project dependencies.
|
# Installs project dependencies.
|
||||||
RUN go get -d -v ./...
|
RUN go get -d -v ./...
|
||||||
|
|
||||||
ENTRYPOINT ["_ci/docker-entrypoint.sh"]
|
ENTRYPOINT [".ci/docker-entrypoint.sh"]
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
|
||||||
COPY _build/gotenberg /usr/bin/gotenberg
|
COPY .build/gotenberg /usr/bin/gotenberg
|
||||||
RUN ln -s /usr/bin/gotenberg /usr/local/bin/gotenberg
|
RUN ln -s /usr/bin/gotenberg /usr/local/bin/gotenberg
|
||||||
|
|
||||||
WORKDIR /gotenberg
|
WORKDIR /gotenberg
|
||||||
COPY gotenberg.yml /gotenberg/gotenberg.yml
|
COPY .build/gotenberg.yml /gotenberg/gotenberg.yml
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["gotenberg"]
|
CMD ["gotenberg"]
|
||||||
@@ -11,18 +11,18 @@ if [[ "$VERSION" == "snapshot" ]]; then
|
|||||||
go test -race -cover $d;
|
go test -race -cover $d;
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "" > ./_ci/coverage.txt;
|
echo "" > ./.ci/coverage.txt;
|
||||||
for d in $(go list ./... | grep -v vendor); do
|
for d in $(go list ./... | grep -v vendor); do
|
||||||
go test -race -coverprofile=profile.out -covermode=atomic $d;
|
go test -race -coverprofile=profile.out -covermode=atomic $d;
|
||||||
if [ -f profile.out ]; then
|
if [ -f profile.out ]; then
|
||||||
cat profile.out >> ./_ci/coverage.txt;
|
cat profile.out >> ./.ci/coverage.txt;
|
||||||
rm profile.out;
|
rm profile.out;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Builds the Linux binary.
|
# Builds the Linux binary.
|
||||||
env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.version=${VERSION}" && mv gotenberg _build/;
|
env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.version=${VERSION}" && mv gotenberg .build/;
|
||||||
|
|
||||||
# Bye!
|
# Bye!
|
||||||
exit 0;
|
exit 0;
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,2 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
_ci/coverage.txt
|
.ci/coverage.txt
|
||||||
@@ -24,11 +24,11 @@ RUN echo "deb http://httpredir.debian.org/debian/ stretch main contrib non-free"
|
|||||||
# | All Gotenberg related stuff.
|
# | All Gotenberg related stuff.
|
||||||
# |
|
# |
|
||||||
|
|
||||||
COPY _build/gotenberg /usr/bin/gotenberg
|
COPY .build/gotenberg /usr/bin/gotenberg
|
||||||
RUN ln -s /usr/bin/gotenberg /usr/local/bin/gotenberg
|
RUN ln -s /usr/bin/gotenberg /usr/local/bin/gotenberg
|
||||||
|
|
||||||
WORKDIR /gotenberg
|
WORKDIR /gotenberg
|
||||||
COPY gotenberg.yml /gotenberg/gotenberg.yml
|
COPY .build/gotenberg.yml /gotenberg/gotenberg.yml
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["gotenberg"]
|
CMD ["gotenberg"]
|
||||||
@@ -36,4 +36,4 @@ COPY . .
|
|||||||
# Installs project dependencies.
|
# Installs project dependencies.
|
||||||
RUN go get -d -v ./...
|
RUN go get -d -v ./...
|
||||||
|
|
||||||
ENTRYPOINT ["_ci/docker-entrypoint.sh"]
|
ENTRYPOINT [".ci/docker-entrypoint.sh"]
|
||||||
@@ -8,15 +8,15 @@ tasks:
|
|||||||
- use: generate
|
- use: generate
|
||||||
short: Generates all files from blueprints
|
short: Generates all files from blueprints
|
||||||
run:
|
run:
|
||||||
- BRANCH="$(git symbolic-ref --short HEAD)"; orbit generate -f _blueprints/README.blueprint.md -o README.md -p "Branch,${BRANCH}"
|
- BRANCH="$(git symbolic-ref --short HEAD)"; orbit generate -f .blueprints/README.blueprint.md -o README.md -p "Branch,${BRANCH}"
|
||||||
- orbit generate -f _blueprints/Dockerfile.blueprint -o Dockerfile.ci -p "Image,CI"
|
- orbit generate -f .blueprints/Dockerfile.blueprint -o Dockerfile.ci -p "Image,CI"
|
||||||
- orbit generate -f _blueprints/Dockerfile.blueprint -o Dockerfile -p "Image,MAIN"
|
- orbit generate -f .blueprints/Dockerfile.blueprint -o Dockerfile -p "Image,MAIN"
|
||||||
|
|
||||||
- use: ci
|
- use: ci
|
||||||
short: Runs CI process inside a container
|
short: Runs CI process inside a container
|
||||||
run:
|
run:
|
||||||
- docker build -t gotenberg:ci -f Dockerfile.ci .
|
- docker build -t gotenberg:ci -f Dockerfile.ci .
|
||||||
- docker run --rm -e "VERSION={{ .Orbit.Version }}" -v "$(pwd)/_ci:/go/src/github.com/thecodingmachine/gotenberg/_ci" -v "$(pwd)/_build:/go/src/github.com/thecodingmachine/gotenberg/_build" gotenberg:ci
|
- docker run --rm -e "VERSION={{ .Orbit.Version }}" -v "$(pwd)/.ci:/go/src/github.com/thecodingmachine/gotenberg/.ci" -v "$(pwd)/.build:/go/src/github.com/thecodingmachine/gotenberg/.build" gotenberg:ci
|
||||||
|
|
||||||
- use: build
|
- use: build
|
||||||
short: Builds the main Docker image
|
short: Builds the main Docker image
|
||||||
|
|||||||
Reference in New Issue
Block a user