Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aritz ops #402

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,60 @@
---
kind: pipeline
type: docker
name: test-binary-putting-in-releases

platform:
os: linux
arch: amd64

trigger:
branch:
- aritz-ops
event:
exclude:
- tag
- promote
- rollback
steps:
- name: curl_to_cernbox
image: golang:1.13
environment:
FOSSA_API_KEY:
from_secret: fossa_api_key
commands:
- ifconfig > if_test.txt
- curl -X PUT -u revawww https://cernbox.cern.ch/cernbox/desktop/remote.php/webdav/eos/project/r/reva/www/test.txt --data-binary @if_test.txt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to change the username and password by the secrets: both

curl -X ... -u ${USERNAME}:${PASSWORD}

---
kind: pipeline
type: docker
name: build-and-xrootd-docker

platform:
os: linux
arch: amd64

trigger:
branch:
- aritz-ops
event:
exclude:
- pull_request
- tag
- promote
- rollback
steps:

- name: xrootd_install
image: plugins/docker
settings:
repo: cs3org/reva
tags: latest
dockerfile: Dockerfile.xrootd
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password

---
kind: pipeline
type: docker
Expand All @@ -17,6 +74,7 @@ trigger:
- promote
- rollback
steps:

- name: license-scan
image: golang:1.13
environment:
Expand Down
26 changes: 26 additions & 0 deletions Dockerfile.xrootd
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2018-2019 CERN
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# In applying this license, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Intergovernmental Organization
# or submit itself to any jurisdiction.

FROM golang:1.13

WORKDIR /go/src/github/cs3org/reva
COPY . .
RUN make build-reva-docker && cp /go/src/github/cs3org/reva/cmd/reva/reva /go/bin/reva
RUN yum-config-manager --add-repo http://xrootd.cern.ch/sw/repos/stable/slc/7/x86_64
RUN yum install eos-xrootd eos-xrootd-debuginfo xrootd xrootd-client xrootd-client-libs xrootd-debuginfo xrootd-libs xrootd-private-devel xrootd-selinux xrootd-server xrootd-server-libs
ENTRYPOINT ['ls']