Git Product home page Git Product logo

core's Introduction

core

Build Status Docker Hub GitHub contributors Source: GitHub License: MIT

ownCloud Core for CI pipelines. The plugin will fetch ownCloud core either from a prebuilt tarball or from a branch/tag from GitHub and aims to ease the setup process for testing owncloud applications.

Plugin Variables

The plugin requires either VERSION, GIT_REFERENCE or DOWNLOAD_URL to be defined. All other variables are optional

  • VERSION The owncloud tarball version to fetch from https://download.owncloud.com/server/stable or daily or testing directory

  • GIT_REFERENCE The branch to fetch from https://github.com/owncloud/core

  • DOWNLOAD_URL Provide a tarball from a different location

  • EXCLUDE Exclude files/folders from being copied to the workspace. This is useful when testing apps that are included in the nightly tarballs. The exclude pattern uses rsync --exclude logic

If CORE_PATH is not defined - the plugin assumes the workspace directory is nested two directories deeper in relation to the owncloud folder

With the following definition of the workspace in the drone.yml

workspace:
  base: /owncloud
  path: apps/app_to_test

The directory layout would be like this:

owncloud              ( PATH )
  └── apps
     └── app_to_test  ( workspace )

Full list of variables

VERSION
GIT_REFERENCE
DOWNLOAD_URL
CORE_DOWNLOAD_URL
EXTRACT_PARAMS     (xj)
DOWNLOAD_FILENAME  (owncloud-${PLUGIN_VERSION}.tar.bz2)
DOWNLOAD_URL       (https://download.owncloud.com/server/stable/${PLUGIN_DOWNLOAD_FILENAME})
GIT_REPOSITORY     (https://github.com/owncloud/core.git)
INSTALL            (true)
ADMIN_LOGIN        (admin)
ADMIN_PASSWORD     (admin)
DATA_DIRECTORY     ($PATH/data)
DB_TYPE            (sqlite)
DB_NAME            (owncloud)
DB_USERNAME        (owncloud)
DB_PASSWORD        (owncloud)
DB_HOST            (localhost:3306)
DB_PREFIX          (oc_)
DB_TIMEOUT         (600)
EXCLUDE

Examples

Basic Example

Download owncloud-daily-master-qa.tar.bz2 and put contents into /var/www/owncloud, install owncloud with sqlite

workspace:
  base: /var/www/owncloud
  path: apps/my_app

pipeline:
  install-server:
    image: owncloudci/core
    pull: true
    version: daily-master-qa

Git core branch and mysql as database

Fetch stable10 branch into /drone, install owncloud with mysql

workspace:
  base: /drone
  path: apps/my_app

pipeline:
  install-server:
    image: owncloudci/core
    pull: true
    git_reference: stable10
    db_type: mysql
    db_name: oc_db
    db_host: service_name:3306
    db_username: admin
    db_password: secret

services:
  service_name:
    image: mysql:5.5
    environment:
      - MYSQL_USER=admin
      - MYSQL_PASSWORD=secret
      - MYSQL_DATABASE=oc_db
      - MYSQL_ROOT_PASSWORD=secret

Exclude folders/files from core

workspace:
  base: /var/www/owncloud
  path: apps/my_app

pipeline:
  install-server:
    image: owncloudci/core
    pull: true
    exclude:
      - apps/notifications
    version: daily-master-qa

License

This project is licensed under the MIT License - see the LICENSE file for details.

Copyright

Copyright (c) 2022 ownCloud GmbH

core's People

Contributors

deepdiver1975 avatar patrickjahns avatar phil-davis avatar renovate[bot] avatar tboerger avatar wkloucek avatar xoxys avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.