Add severspec test, rm resources
This commit is contained in:
parent
b689d520ce
commit
75d3427893
5 changed files with 20 additions and 10 deletions
|
@ -49,4 +49,3 @@ def publish(project):
|
|||
def test(project):
|
||||
build = get_devops_build(project)
|
||||
build.test()
|
||||
|
||||
|
|
|
@ -11,26 +11,23 @@ ARG CGO_EXTRA_CFLAGS
|
|||
|
||||
ENV FORGEJO_GIT_URL "https://codeberg.org/forgejo/forgejo.git"
|
||||
ENV FORGEJO_BRANCH "forgejo-federation"
|
||||
#ENV FORGEJO_FOLDER "forgejo-fed"
|
||||
|
||||
#Build deps
|
||||
RUN apk --no-cache add build-base git nodejs npm
|
||||
|
||||
#Setup repo
|
||||
RUN git clone --single-branch --branch ${FORGEJO_BRANCH} ${FORGEJO_GIT_URL} ${GOPATH}/src/code.gitea.io/gitea
|
||||
#${FORGEJO_FOLDER}
|
||||
#COPY ${FORGEJO_FOLDER} ${GOPATH}/src/code.gitea.io/gitea
|
||||
|
||||
WORKDIR ${GOPATH}/src/code.gitea.io/gitea
|
||||
|
||||
#Checkout version if set
|
||||
#RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
|
||||
RUN make clean-all build
|
||||
|
||||
# Begin env-to-ini build
|
||||
RUN go build contrib/environment-to-ini/environment-to-ini.go
|
||||
|
||||
# Run stage
|
||||
FROM docker.io/library/alpine:3.17
|
||||
FROM docker.io/library/alpine:3.18
|
||||
LABEL maintainer="contact@forgejo.org"
|
||||
|
||||
EXPOSE 22 3000
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
install -m 0700 /tmp/entrypoint.sh /
|
||||
install -m 0700 /tmp/functions.sh /usr/local/bin/
|
||||
|
10
infrastructure/docker-federated/test/Dockerfile
Normal file
10
infrastructure/docker-federated/test/Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
FROM c4k-forgejo-fed
|
||||
|
||||
RUN apk --no-cache add openjdk11-jre-headless
|
||||
|
||||
RUN curl -L -o /tmp/serverspec.jar \
|
||||
https://github.com/DomainDrivenArchitecture/dda-serverspec-crate/releases/download/2.0.0/dda-serverspec-standalone.jar
|
||||
|
||||
COPY serverspec.edn /tmp/serverspec.edn
|
||||
|
||||
RUN java -jar /tmp/serverspec.jar /tmp/serverspec.edn -v
|
8
infrastructure/docker-federated/test/serverspec.edn
Normal file
8
infrastructure/docker-federated/test/serverspec.edn
Normal file
|
@ -0,0 +1,8 @@
|
|||
{:file [{:path "/usr/bin/entrypoint" :mod "755"}
|
||||
{:path "/app/gitea/gitea" :mod "755"}
|
||||
{:path "/usr/local/bin/gitea" :mod "755"}
|
||||
{:path "/usr/local/bin/environment-to-ini" :mod "755"}
|
||||
{:path "/etc/s6/gitea/" :mod "755"}
|
||||
{:path "/etc/s6/openssh/" :mod "755"}
|
||||
{:path "/etc/s6/.s6-svscan/" :mod "755"}
|
||||
{:path "/etc/profile.d/gitea_bash_autocomplete.sh" :mod "644"}]}
|
Loading…
Reference in a new issue