This commit is contained in:
16
.drone.yml
Normal file
16
.drone.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: https://git.ivasoft.cz
|
||||
username:
|
||||
from_secret: repo_user
|
||||
password:
|
||||
from_secret: repo_pass
|
||||
repo: git.ivasoft.cz/sw/docker-ocis
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_TAG:-latest}
|
||||
50
Dockerfile
Normal file
50
Dockerfile
Normal file
@@ -0,0 +1,50 @@
|
||||
# Please use this Dockerfile only if
|
||||
# you want to build an image from source without
|
||||
# pnpm and Go installed on your dev machine.
|
||||
|
||||
# You can build oCIS using this Dockerfile
|
||||
# by running following command:
|
||||
# `docker build -t owncloud/ocis:custom .`
|
||||
|
||||
# In most other cases you might want to run the
|
||||
# following command instead:
|
||||
# `make -C ocis dev-docker`
|
||||
# It will build a `owncloud/ocis:dev` image for you
|
||||
# and use your local pnpm and Go caches and therefore
|
||||
# is a lot faster than the build steps below.
|
||||
|
||||
|
||||
FROM owncloudci/nodejs:18 AS generate
|
||||
|
||||
COPY patches/ /patches/
|
||||
|
||||
RUN set -e -x; \
|
||||
cd /; \
|
||||
git clone https://github.com/owncloud/ocis.git; \
|
||||
cd /ocis; \
|
||||
git apply /patches/001-dav-lock-propagation.patch; \
|
||||
cd /ocis/ocis; \
|
||||
make ci-node-generate
|
||||
|
||||
FROM owncloudci/golang:1.22 AS build
|
||||
|
||||
COPY --from=generate /ocis /ocis
|
||||
|
||||
WORKDIR /ocis/ocis
|
||||
RUN make ci-go-generate build ENABLE_VIPS=true
|
||||
|
||||
FROM alpine:3.20
|
||||
|
||||
RUN apk add --no-cache attr ca-certificates curl mailcap tree vips && \
|
||||
echo 'hosts: files dns' >| /etc/nsswitch.conf
|
||||
|
||||
LABEL maintainer="ownCloud GmbH <devops@owncloud.com>" \
|
||||
org.label-schema.name="ownCloud Infinite Scale" \
|
||||
org.label-schema.vendor="ownCloud GmbH" \
|
||||
org.label-schema.schema-version="1.0"
|
||||
|
||||
ENTRYPOINT ["/usr/bin/ocis"]
|
||||
CMD ["server"]
|
||||
|
||||
COPY --from=build /ocis/ocis/bin/ocis /usr/bin/ocis
|
||||
|
||||
18
patches/001-dav-lock-propagation.patch
Normal file
18
patches/001-dav-lock-propagation.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
--- a/vendor/github.com/cs3org/reva/v2/internal/http/services/owncloud/ocdav/proppatch.go
|
||||
+++ b/vendor/github.com/cs3org/reva/v2/internal/http/services/owncloud/ocdav/proppatch.go
|
||||
@@ -133,12 +133,14 @@ func (s *svc) handleProppatch(ctx context.Context, w http.ResponseWriter, r *htt
|
||||
rreq := &provider.UnsetArbitraryMetadataRequest{
|
||||
Ref: ref,
|
||||
ArbitraryMetadataKeys: []string{""},
|
||||
+ LockId: requestLockToken(r),
|
||||
}
|
||||
sreq := &provider.SetArbitraryMetadataRequest{
|
||||
Ref: ref,
|
||||
ArbitraryMetadata: &provider.ArbitraryMetadata{
|
||||
Metadata: map[string]string{},
|
||||
},
|
||||
+ LockId: requestLockToken(r),
|
||||
}
|
||||
|
||||
acceptedProps := []xml.Name{}
|
||||
|
||||
Reference in New Issue
Block a user