summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-01-14 12:56:53 +0100
committerMatthias Beyer <matthias.beyer@atos.net>2021-01-14 12:56:53 +0100
commitb6a52fd28003ed3ce251a3647e837ca11b9d1222 (patch)
treebd19eecb8e834ed713038844e51249838d07d918
parenta7f90ff4feea95eccf9ff58120175164dde258fd (diff)
parenta1d6524dce0a382fbcaff5da125363bdebe3ded4 (diff)
Merge branch 'opensourcing'
-rw-r--r--CHANGELOG.md7
-rw-r--r--Cargo.toml10
-rw-r--r--LICENSE278
-rw-r--r--README.md72
-rw-r--r--deny.toml62
-rw-r--r--migrations/2020-10-29-132821_create_envvars/down.sql10
-rw-r--r--migrations/2020-10-29-132821_create_envvars/up.sql10
-rw-r--r--migrations/2020-10-29-140235_create_githashes/down.sql10
-rw-r--r--migrations/2020-10-29-140235_create_githashes/up.sql10
-rw-r--r--migrations/2020-10-29-140838_create_packages/down.sql10
-rw-r--r--migrations/2020-10-29-140838_create_packages/up.sql10
-rw-r--r--migrations/2020-10-29-140956_create_images/down.sql10
-rw-r--r--migrations/2020-10-29-140956_create_images/up.sql10
-rw-r--r--migrations/2020-10-29-141023_create_submits/down.sql10
-rw-r--r--migrations/2020-10-29-141023_create_submits/up.sql10
-rw-r--r--migrations/2020-10-29-141904_create_endpoints/down.sql10
-rw-r--r--migrations/2020-10-29-141904_create_endpoints/up.sql10
-rw-r--r--migrations/2020-10-29-142339_create_artifacts/down.sql10
-rw-r--r--migrations/2020-10-29-142339_create_artifacts/up.sql10
-rw-r--r--migrations/2020-10-29-142443_create_jobs/down.sql10
-rw-r--r--migrations/2020-10-29-142443_create_jobs/up.sql10
-rw-r--r--migrations/2020-10-29-142619_create_job_input_artifacts/down.sql10
-rw-r--r--migrations/2020-10-29-142619_create_job_input_artifacts/up.sql10
-rw-r--r--migrations/2020-10-29-142914_create_job_envs/down.sql10
-rw-r--r--migrations/2020-10-29-142914_create_job_envs/up.sql10
-rw-r--r--migrations/2020-10-29-143003_create_submit_envs/down.sql12
-rw-r--r--migrations/2020-10-29-143003_create_submit_envs/up.sql10
-rw-r--r--migrations/2020-11-05-125716_drop_submit_buildplan/down.sql10
-rw-r--r--migrations/2020-11-05-125716_drop_submit_buildplan/up.sql10
-rw-r--r--migrations/2020-11-11-111013_job_output_artifacts/down.sql10
-rw-r--r--migrations/2020-11-11-111013_job_output_artifacts/up.sql10
-rw-r--r--migrations/2020-11-11-111326_job_has_multiple_outputs/down.sql10
-rw-r--r--migrations/2020-11-11-111326_job_has_multiple_outputs/up.sql10
-rw-r--r--migrations/2020-11-13-161449_add_job_uuid/down.sql10
-rw-r--r--migrations/2020-11-13-161449_add_job_uuid/up.sql10
-rw-r--r--migrations/2020-12-03-084509_artifact_release_flag/down.sql10
-rw-r--r--migrations/2020-12-03-084509_artifact_release_flag/up.sql10
-rw-r--r--migrations/2020-12-03-085333_artifact_belongs_to_job/down.sql10
-rw-r--r--migrations/2020-12-03-085333_artifact_belongs_to_job/up.sql10
-rw-r--r--migrations/2020-12-14-100454_artifact-unique-by-job/down.sql10
-rw-r--r--migrations/2020-12-14-100454_artifact-unique-by-job/up.sql10
-rw-r--r--migrations/2020-12-14-113756_artifact_not_unique_by_path/down.sql10
-rw-r--r--migrations/2020-12-14-113756_artifact_not_unique_by_path/up.sql10
-rw-r--r--src/cli.rs10
-rw-r--r--src/commands/build.rs10
-rw-r--r--src/commands/db.rs10
-rw-r--r--src/commands/dependencies_of.rs10
-rw-r--r--src/commands/env_of.rs10
-rw-r--r--src/commands/find_pkg.rs10
-rw-r--r--src/commands/lint.rs10
-rw-r--r--src/commands/mod.rs10
-rw-r--r--src/commands/release.rs10
-rw-r--r--src/commands/source.rs10
-rw-r--r--src/commands/tree_of.rs10
-rw-r--r--src/commands/util.rs10
-rw-r--r--src/commands/versions_of.rs10
-rw-r--r--src/commands/what_depends.rs10
-rw-r--r--src/config/configuration.rs10
-rw-r--r--src/config/container_config.rs10
-rw-r--r--src/config/docker_config.rs10
-rw-r--r--src/config/endpoint_config.rs10
-rw-r--r--src/config/mod.rs10
-rw-r--r--src/config/not_validated.rs10
-rw-r--r--src/config/util.rs10
-rw-r--r--src/db/connection.rs10
-rw-r--r--src/db/mod.rs10
-rw-r--r--src/db/models/artifact.rs10
-rw-r--r--src/db/models/endpoint.rs10
-rw-r--r--src/db/models/envvar.rs10
-rw-r--r--src/db/models/githash.rs10
-rw-r--r--src/db/models/image.rs10
-rw-r--r--src/db/models/job.rs10
-rw-r--r--src/db/models/job_env.rs10
-rw-r--r--src/db/models/mod.rs10
-rw-r--r--src/db/models/package.rs10
-rw-r--r--src/db/models/submit.rs10
-rw-r--r--src/endpoint/configuration.rs10
-rw-r--r--src/endpoint/configured.rs10
-rw-r--r--src/endpoint/mod.rs10
-rw-r--r--src/endpoint/scheduler.rs10
-rw-r--r--src/filestore/artifact.rs10
-rw-r--r--src/filestore/merged.rs10
-rw-r--r--src/filestore/mod.rs10
-rw-r--r--src/filestore/path.rs10
-rw-r--r--src/filestore/release.rs10
-rw-r--r--src/filestore/staging.rs10
-rw-r--r--src/filestore/util.rs10
-rw-r--r--src/job/job.rs10
-rw-r--r--src/job/mod.rs10
-rw-r--r--src/job/resource.rs10
-rw-r--r--src/job/runnable.rs10
-rw-r--r--src/job/set.rs10
-rw-r--r--src/log/item.rs10
-rw-r--r--src/log/mod.rs10
-rw-r--r--src/log/parser.rs10
-rw-r--r--src/log/sink.rs10
-rw-r--r--src/log/util.rs10
-rw-r--r--src/main.rs10
-rw-r--r--src/orchestrator/mod.rs10
-rw-r--r--src/orchestrator/orchestrator.rs10
-rw-r--r--src/package/dependency/build.rs10
-rw-r--r--src/package/dependency/mod.rs10
-rw-r--r--src/package/dependency/runtime.rs10
-rw-r--r--src/package/mod.rs10
-rw-r--r--src/package/name.rs10
-rw-r--r--src/package/package.rs10
-rw-r--r--src/package/phase.rs10
-rw-r--r--src/package/script.rs10
-rw-r--r--src/package/source.rs53
-rw-r--r--src/package/tree.rs10
-rw-r--r--src/package/util.rs11
-rw-r--r--src/package/version.rs10
-rw-r--r--src/repository/mod.rs10
-rw-r--r--src/repository/repository.rs10
-rw-r--r--src/schema.rs10
-rw-r--r--src/source/mod.rs40
-rw-r--r--src/ui.rs10
-rw-r--r--src/util/docker.rs10
-rw-r--r--src/util/filters.rs10
-rw-r--r--src/util/git.rs10
-rw-r--r--src/util/mod.rs10
-rw-r--r--src/util/parser.rs10
-rw-r--r--src/util/progress.rs10
123 files changed, 1646 insertions, 39 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..9c21dac
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,7 @@
+# Changelog
+
+
+## v0.1.0
+
+* Not released yet
+
diff --git a/Cargo.toml b/Cargo.toml
index 6217efd..f10dace 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,8 +1,12 @@
[package]
name = "butido"
version = "0.1.0"
-authors = ["Matthias Beyer <mail@beyermatthias.de>"]
+authors = ["Matthias Beyer <mail@beyermatthias.de>",
+ "Matthias Beyer <matthias.beyer@atos.net>",
+ "Christoph Prokop <christoph.prokop@atos.net>",
+ ]
edition = "2018"
+license = "EPL-2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -16,7 +20,6 @@ clap_generate = "3.0.0-beta.2"
colored = "2"
config = "0.10"
csv = "1.1"
-data-encoding = "2.3"
diesel = { version = "1.4", features = ["postgres", "chrono", "uuid", "serde_json"] }
env_logger = "0.8"
filters = "0.4.0"
@@ -35,9 +38,10 @@ regex = "1"
reqwest = { version = "0.10", features = [ "stream" ] }
resiter = "0.4"
result-inspect = "0.1"
-ring = "0.16"
serde = "1"
serde_json = "1"
+sha1 = { version = "0.6", features = ["std"] }
+sha2 = "0.9"
shiplift = { git = "https://github.com/softprops/shiplift", rev = "03cc8c075f86f1bd9e2c4e29872a0e8b9072c7f0" }
syntect = "4.4"
tar = "0.4"
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..c43ced4
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,278 @@
+Eclipse Public License - v 2.0
+
+ THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
+ PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION
+ OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
+
+1. DEFINITIONS
+
+"Contribution" means:
+
+ a) in the case of the initial Contributor, the initial content
+ Distributed under this Agreement, and
+
+ b) in the case of each subsequent Contributor:
+ i) changes to the Program, and
+ ii) additions to the Program;
+ where such changes and/or additions to the Program originate from
+ and are Distributed by that particular Contributor. A Contribution
+ "originates" from a Contributor if it was added to the Program by
+ such Contributor itself or anyone acting on such Contributor's behalf.
+ Contributions do not include changes or additions to the Program that
+ are not Modified Works.
+
+"Contributor" means any person or entity that Distributes the Program.
+
+"Licensed Patents" mean patent claims licensable by a Contributor which
+are necessarily infringed by the use or sale of its Contribution alone
+or when combined with the Program.
+
+"Program" means the Contributions Distributed in accordance with this
+Agreement.
+
+"Recipient" means anyone who receives the Program under this Agreement
+or any Secondary License (as applicable), including Contributors.
+
+"Derivative Works" shall mean any work, whether in Source Code or other
+form, that is based on (or derived from) the Program and for which the
+editorial revisions, annotations, elaborations, or other modifications
+represent, as a whole, an original work of authorship.
+
+"Modified Works" shall mean any work in Source Code or other form that
+results from an addition to, deletion from, or modification of the
+contents of the Program, including, for purposes of clarity any new file
+in Source Code form that contains any contents of the Program. Modified
+Works shall not include works that contain only declarations,
+interfaces, types, classes, structures, or files of the Program solely
+in each case in order to link to, bind by name, or subclass the Program
+or Modified Works thereof.
+
+"Distribute" means the acts of a) distributing or b) making available
+in any manner that enables the transfer of a copy.
+
+"Source Code" means the form of a Program preferred for making
+modifications, including but not limited to software source code,
+documentation source, and configuration files.
+
+"Secondary License" means either the GNU General Public License,
+Version 2.0, or any later versions of that license, including any
+exceptions or additional permissions as identified by the initial
+Contributor.
+
+2. GRANT OF RIGHTS
+
+ a) Subject to the terms of this Agreement, each Contributor hereby
+ grants Recipient a non-exclusive, worldwide, royalty-free copyright
+ license to reproduce, prepare Derivative Works of, publicly display,
+ publicly perform, Distribute and sublicense the Contribution of such