Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
546 commits
Select commit Hold shift + click to select a range
08694f2
logging support wip
johankristianss Aug 5, 2023
7958c71
logging support wip
johankristianss Aug 6, 2023
26b2e8b
logging now working
johankristianss Aug 6, 2023
88dd7d0
Merge pull request #117 from colonyos/improved_executor_and_logging
johankristianss Aug 6, 2023
ab61035
filesystem wip
johankristianss Aug 7, 2023
a3e3d2e
fs database now working
johankristianss Aug 7, 2023
03483e0
more boilerplate code
johankristianss Aug 7, 2023
6cfdc6b
more boilerplate code
johankristianss Aug 7, 2023
87f90d5
working fs rpc
johankristianss Aug 8, 2023
6390de8
added fs security tests
johankristianss Aug 8, 2023
da76022
fs client wip
johankristianss Aug 8, 2023
62c5b69
fs s3 client and sync plan
johankristianss Aug 9, 2023
980041a
new vendor
johankristianss Aug 9, 2023
42e004c
more fs wip
johankristianss Aug 9, 2023
5e5147a
fs client sync tests
johankristianss Aug 10, 2023
b38380f
fs cli wip
johankristianss Aug 10, 2023
a27f45b
more fs cli commands
johankristianss Aug 10, 2023
7bce123
support for downloading files
johankristianss Aug 10, 2023
4e65c98
cli support for deleting files
johankristianss Aug 11, 2023
8b69eac
snapshot db support
johankristianss Aug 11, 2023
31066d0
snapshot rpc
johankristianss Aug 11, 2023
fe1f322
snapshot server support completed
johankristianss Aug 11, 2023
1935efe
more fs snapshot cli wip
johankristianss Aug 11, 2023
0618df9
changed function order
johankristianss Aug 11, 2023
8d47928
snapshot cli completed
johankristianss Aug 12, 2023
18f0874
bugfixe: failed to sync a directory if it contains a directory, also …
johankristianss Aug 12, 2023
d7499b0
not downloading files if already downloaded
johankristianss Aug 12, 2023
54af00e
Merge pull request #118 from colonyos/fs_support
johankristianss Aug 12, 2023
434420d
add newline after s3 progressbar finish
johankristianss Aug 12, 2023
fed10b7
improved cli
johankristianss Aug 12, 2023
32ff867
improved error management
johankristianss Aug 12, 2023
2b61558
removed printout in log
johankristianss Aug 12, 2023
632a64d
improved makefile
johankristianss Aug 13, 2023
28b388c
improved cli
johankristianss Aug 13, 2023
e129fd1
improved cli
johankristianss Aug 13, 2023
54163a4
bug fix
johankristianss Aug 13, 2023
8103cc6
improved logging
johankristianss Aug 13, 2023
01dfbca
funcspec now include fs info
johankristianss Aug 16, 2023
bc626fd
automatically making snapshots
johankristianss Aug 16, 2023
ccb295a
support for sync on completion
johankristianss Aug 19, 2023
de23fe3
fs sync does not require that dir exists
johankristianss Aug 19, 2023
4d4cef2
improved executor and function specs
johankristianss Sep 9, 2023
d40d0cb
removed junk file
johankristianss Sep 9, 2023
72b4178
added processes per node condition in function spec
johankristianss Sep 10, 2023
5b43613
support for recursive fs
johankristianss Oct 8, 2023
a6d33a4
support for recursive snapshots
johankristianss Oct 8, 2023
830c2b0
support for recursive fs now supported
johankristianss Oct 9, 2023
fe565da
Merge pull request #119 from colonyos/recursive_fs_v3
johankristianss Oct 9, 2023
f2effe4
renamed required executor membership to require membership, also upda…
johankristianss Oct 10, 2023
5841576
renamed required executor membership to require membership, also upda…
johankristianss Oct 10, 2023
bf121b8
removed junk file
johankristianss Oct 10, 2023
c976201
renamed required executor membership to require membership, also upda…
johankristianss Oct 10, 2023
803948b
updated cli
johankristianss Oct 10, 2023
8d35830
Merge pull request #120 from colonyos/improved_fs
johankristianss Oct 10, 2023
1f4e952
don't add slash on single tags without subdirs, also added fields for…
johankristianss Oct 10, 2023
87b6e99
improved conflict resolution
johankristianss Oct 11, 2023
d7c7233
bugfix
johankristianss Oct 11, 2023
46f02db
big fix to prevent invalid workflows to be submitted
johankristianss Oct 17, 2023
d2f5816
Merge pull request #121 from colonyos/improved_wf_checks
johankristianss Oct 17, 2023
35999a3
removed duplicated log
johankristianss Oct 18, 2023
7e19978
improved json linting
johankristianss Nov 15, 2023
dba7f26
Merge pull request #122 from colonyos/improved_json_linting
johankristianss Nov 15, 2023
d996ab3
improved cli follow process
johankristianss Nov 17, 2023
82080ca
workflow bug fix
johankristianss Nov 18, 2023
117f48c
updated doc
johankristianss Nov 20, 2023
7a85945
added TODO
johankristianss Nov 20, 2023
d291f95
Merge pull request #123 from colonyos/improved_cli_follow
johankristianss Nov 20, 2023
503eafb
clean up code, removed redundant code and removed dependendcy to keyc…
johankristianss Nov 27, 2023
a0a4dd2
added user
johankristianss Nov 27, 2023
eccbe76
added user
johankristianss Nov 27, 2023
1c5f761
added user
johankristianss Nov 27, 2023
d63d449
clean up, remove server id and executorids
johankristianss Nov 27, 2023
5dc1bba
prepared for user management
johankristianss Nov 27, 2023
da0aa87
added func to generate test user, also made colony name unique
johankristianss Nov 27, 2023
b812f5e
more user management
johankristianss Nov 27, 2023
0e2747c
user management now working
johankristianss Nov 27, 2023
4f49e0e
colony clean up
johankristianss Nov 28, 2023
571cc1f
colony clean up
johankristianss Nov 28, 2023
c9d72b3
database now working
johankristianss Nov 28, 2023
838c8ef
now using colony name, instead of colony id
johankristianss Nov 28, 2023
7fa2bc5
fixed broken unittests, more cli refactoring
johankristianss Nov 28, 2023
d815191
fixed so that executors are unique, starting to transition to executo…
johankristianss Nov 29, 2023
b2353e4
making processes and executor CLI cmd work again
johankristianss Nov 29, 2023
0b33d4c
refactored function, to not use executor id but executor name
johankristianss Nov 29, 2023
c222b76
fixed function not to use executor id, but rather executor name
johankristianss Nov 29, 2023
eebf1f5
made it possible remove executor by name
johankristianss Nov 30, 2023
f8939a7
changed ColonyID to ColonyName
johankristianss Nov 30, 2023
65f77a1
changed ColonyID to ColonyName
johankristianss Nov 30, 2023
d71426e
changed ColonyID to ColonyName
johankristianss Nov 30, 2023
bf0f15c
remove some inconsistency
johankristianss Nov 30, 2023
830c6f1
clean cli
johankristianss Nov 30, 2023
8479290
making test work after refactoring
johankristianss Nov 30, 2023
270e5cf
not returning error if no generators are found
johankristianss Nov 30, 2023
90ef118
bug fix
johankristianss Nov 30, 2023
2ffb0d5
better error print out if no generators are gound
johankristianss Nov 30, 2023
ed2b2e6
clean up
johankristianss Nov 30, 2023
3fcda20
cli improvements
johankristianss Nov 30, 2023
fa84799
fixed bug, caused snapshots not be downloaded correctly, improved err…
johankristianss Dec 1, 2023
4edcd3f
new version
johankristianss Dec 1, 2023
dc7fcde
improved user management, and cli clean up
johankristianss Dec 3, 2023
532d10a
fix, to make unit test work
johankristianss Dec 3, 2023
4e4e080
fix, to make unit test work
johankristianss Dec 3, 2023
24894a7
support for setting allocationsm and improved assigned (wip)
johankristianss Dec 4, 2023
e6988a3
support for setting allocationsm and improved assigned (wip)
johankristianss Dec 4, 2023
27d3b85
new version
johankristianss Dec 4, 2023
f4cc1ea
more doc
johankristianss Dec 5, 2023
ca8331f
improved file sync
johankristianss Dec 11, 2023
b49a7c3
windows support
johankristianss Dec 14, 2023
3ea575f
windows support
johankristianss Dec 14, 2023
001c711
added support for docker-compose and fixed a typo
johankristianss Dec 18, 2023
39fb6c1
typo in rpc message
johankristianss Dec 20, 2023
e4e10c6
new makefile
johankristianss Dec 20, 2023
fc4d56d
improved tables
johankristianss Dec 26, 2023
15c7fc8
solarized theme
johankristianss Dec 26, 2023
b99eedd
improved tables
johankristianss Dec 26, 2023
16a4fc3
improved tables
johankristianss Dec 26, 2023
fa888b6
improved tables
johankristianss Dec 26, 2023
1ff0f15
improved tables
johankristianss Dec 27, 2023
93cf0b8
improved tables
johankristianss Dec 27, 2023
2358b7b
improved tables
johankristianss Dec 28, 2023
7ffd7f3
updated tables
johankristianss Dec 29, 2023
fb51d99
refactored, and updated tests
johankristianss Dec 29, 2023
f829c25
updated findcandidates to be compliant with scheduler
johankristianss Dec 29, 2023
554207c
added executor type to functions
johankristianss Dec 29, 2023
7052f1d
parsers wip
johankristianss Dec 29, 2023
2b9215a
added executor type to function
johankristianss Dec 29, 2023
1b139a1
updated dependencies
johankristianss Dec 29, 2023
c5be982
performance tests
johankristianss Jan 1, 2024
da4f7fc
improved scheduler
johankristianss Jan 1, 2024
8f283b5
support for setting cpu and memory conditions
johankristianss Jan 1, 2024
4c2e1bd
updated crypto library
johankristianss Jan 1, 2024
676de0b
users security tests
johankristianss Jan 1, 2024
6e2c2ea
updated Makefile
johankristianss Jan 1, 2024
3f2ccdb
wip
johankristianss Jan 2, 2024
4eebbed
improved fs sync and progressbar
johankristianss Jan 1, 2024
b8b7263
more progressbar, and improved performance
johankristianss Jan 2, 2024
00f87a4
fixing race condition
johankristianss Jan 2, 2024
55651a7
more changeid work
johankristianss Jan 3, 2024
e34a1f0
fix to make timescaledb work properly
johankristianss Jan 3, 2024
4beeec5
added command to start test database
johankristianss Jan 3, 2024
a94c6f7
updated to lastest timescaledb, also cleaned and use the --initdb fla…
johankristianss Jan 3, 2024
a108605
changed id not completed
johankristianss Jan 3, 2024
0355ca8
fix to return error code correctly
johankristianss Jan 3, 2024
0eea264
cli support to change ids
johankristianss Jan 3, 2024
226f49b
wip
johankristianss Jan 2, 2024
a16e222
more changeid work
johankristianss Jan 3, 2024
20e9c4f
fix to make timescaledb work properly
johankristianss Jan 3, 2024
aa55e34
added command to start test database
johankristianss Jan 3, 2024
9dcdea2
updated to lastest timescaledb, also cleaned and use the --initdb fla…
johankristianss Jan 3, 2024
34bee51
changed id not completed
johankristianss Jan 3, 2024
7aa50e5
fix to return error code correctly
johankristianss Jan 3, 2024
afe20b6
cli support to change ids
johankristianss Jan 3, 2024
dd90dc6
Merge branch 'changeid' of github.com:colonyos/colonies into changeid
johankristianss Jan 3, 2024
b549d25
remove all snapshots
johankristianss Jan 4, 2024
a034d8d
support for filtering processes
johankristianss Jan 4, 2024
77c6f9f
wip
johankristianss Jan 4, 2024
0226d10
cleanup
johankristianss Jan 4, 2024
05f67ad
support for searching logs
johankristianss Jan 5, 2024
9c9facc
made it possible to enable ascii tables
johankristianss Jan 5, 2024
0857d90
memory fix
johankristianss Jan 6, 2024
8d034a1
unit test fix
johankristianss Jan 6, 2024
9a87fff
unit test fix
johankristianss Jan 7, 2024
0633c24
report allocation support
johankristianss Jan 7, 2024
d882c7e
bugfix
johankristianss Jan 7, 2024
979ee82
bugix parse mem
johankristianss Jan 7, 2024
19bea6a
improved rendering av log table
johankristianss Jan 7, 2024
c4fd962
improved log print out
johankristianss Jan 8, 2024
b81849e
improved log print out
johankristianss Jan 8, 2024
4f1fa8b
subscription permission fix
johankristianss Jan 8, 2024
88e58be
added last hearded from
johankristianss Jan 9, 2024
f73e21a
new version
johankristianss Jan 9, 2024
98d1bc9
bug fix
johankristianss Jan 9, 2024
ba3baed
bug fix
johankristianss Jan 9, 2024
b62c8f2
updated container version
johankristianss Jan 9, 2024
0ac7aa0
updated converage script
johankristianss Jan 12, 2024
66441dc
bugfix to make it possible to use the cli without setting COLONIES_DB…
johankristianss Jan 12, 2024
ffdf780
setting default count
johankristianss Feb 3, 2024
162441b
removed gpu from brokering matching
johankristianss Feb 3, 2024
8f97d35
update docs and tests to reflect change to conditions regarding execu…
ossko Feb 9, 2024
75f32fc
latest vendor
johankristianss Feb 5, 2024
bac8293
latest vendor
johankristianss Feb 5, 2024
bd7b9fb
dht
johankristianss Feb 5, 2024
a4fe170
renamed function
johankristianss Feb 5, 2024
25df4ad
more impl
johankristianss Feb 6, 2024
0431e4b
race condition tracking
johankristianss Feb 7, 2024
e61528a
working loopup
johankristianss Feb 8, 2024
bac28cc
more impl
johankristianss Feb 8, 2024
48432b5
more impl
johankristianss Feb 8, 2024
19265fb
put and get working
johankristianss Feb 10, 2024
3be929f
refactored kvstore
johankristianss Feb 10, 2024
09327b8
improved security
johankristianss Feb 11, 2024
e5135c1
refactoring network
johankristianss Feb 11, 2024
2765294
libp2p support now working
johankristianss Feb 11, 2024
6584f51
libp2p support now working
johankristianss Feb 11, 2024
1136dd5
etcd fix and new golang version
johankristianss Feb 12, 2024
0efd104
bug fixes, improved context usage, bind to all interfaces
johankristianss Feb 13, 2024
489e857
rootkey must be id
johankristianss Feb 14, 2024
dd7d37d
clean up libp2p addr
johankristianss Feb 14, 2024
d643aac
removed hostid
johankristianss Feb 14, 2024
6d9ca8d
clean up
johankristianss Feb 14, 2024
6345959
client-server wip
johankristianss Feb 23, 2024
c351570
remove duplicate print of function table
johankristianss Feb 23, 2024
9e5216d
remove new line
johankristianss Feb 27, 2024
c3ebe37
fix to prevent sync from freeze in case of empty files
johankristianss Mar 1, 2024
f089eed
get label by name bugfix
johankristianss Mar 7, 2024
84dd662
added libcfs
johankristianss Mar 7, 2024
103e7e7
added unit test
johankristianss Mar 7, 2024
2e0f9e5
snapshot bugfix
johankristianss Mar 7, 2024
7e7a89f
unittest bugfix
johankristianss Mar 7, 2024
593ea39
get labels bug fix
johankristianss Mar 8, 2024
c22379a
fixed typo, and new cfs lib
johankristianss Mar 8, 2024
ac75346
fix revision bug
johankristianss Mar 12, 2024
72dda16
fixed comment
johankristianss Mar 12, 2024
def632b
support for cleaning directories
johankristianss Mar 17, 2024
0a45da9
changed Colonies to ColonyOS
johankristianss Mar 17, 2024
cf44137
fixing unit test and deprecation
johankristianss Mar 17, 2024
3c8e179
new version
johankristianss Mar 17, 2024
c7a2751
ignore the fslib build artifact
ossko Apr 18, 2024
9f424b8
update the fibonacci examples to match the new API
ossko Apr 18, 2024
b5d1bf1
update the go tutorial to match the actual examples
ossko Apr 18, 2024
175a6b3
fix a typo in the go tutorial
ossko Apr 18, 2024
6f0fe0a
improved docker-compose file
johankristianss Jun 29, 2024
356e619
Merge branch 'main' of github.com:colonyos/colonies
johankristianss Jun 29, 2024
2dd931b
docker compose fix
johankristianss Jun 29, 2024
096f401
update docker compose file, also fixed a bug in the cli
johankristianss Jun 30, 2024
96147aa
updated github workflows
johankristianss Jun 30, 2024
cb472d0
added tutorial
johankristianss Jul 3, 2024
e4e9007
added tutorial
johankristianss Jul 3, 2024
5e6c4ec
changed json attribute
johankristianss Jul 18, 2024
e8d0c9f
updated docker-compose
johankristianss Jul 18, 2024
96e116c
v1.8.9
johankristianss Jul 18, 2024
9d7dc4a
updated go release to use CGOEANBLED
johankristianss Sep 6, 2024
80b0399
removed bin and lib dir from history to speed up cloning of the repo
johankristianss Sep 7, 2024
15da752
removed duplicated allow register entry, also removed version
johankristianss Sep 7, 2024
c8e59bb
coorectly setting version and build date flags
johankristianss Sep 7, 2024
4c6c2bc
made it possible to set file permissions
johankristianss Sep 10, 2024
ec7ca08
setting file permission with Chmnod
johankristianss Sep 10, 2024
ff5daca
setting permissions on files too
johankristianss Sep 11, 2024
9b39ebd
setting permissions on files too
johankristianss Sep 11, 2024
eea32ef
removed permission
johankristianss Sep 11, 2024
37615f3
added env files for windows
johankristianss Sep 14, 2024
8f282ec
made it possible to se current version
johankristianss Sep 14, 2024
4025ab2
v1.8.17:wq
johankristianss Sep 14, 2024
9363ccf
updated devenv
johankristianss Sep 14, 2024
d06283c
added support to register an executor and also create ecdsa key, whic…
johankristianss Feb 10, 2025
6699200
Fix inconsistencies in RPC.md
segeljakt Aug 15, 2025
2a2c0db
Add undocumented RPC calls to RPC.md
segeljakt Aug 15, 2025
c19f89b
Rename Statisitics to Statistics
segeljakt Aug 15, 2025
1fd8e26
Add links to where payload and reply is defined
segeljakt Aug 15, 2025
d953172
Document unused fields in RPC Requests
segeljakt Aug 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
51 changes: 51 additions & 0 deletions .github/workflows/docker_master.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Docker CI master

on:
push:
branches: [ "main" ]
tags:
- '*'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21.6

- name: Build
run: make

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
19 changes: 16 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ on:
jobs:
# Label of the container job
runner-job:
runs-on: ubuntu-latest
runs-on: self-hosted

# Service containers to run with `runner-job`
services:
minio:
image: fclairamb/minio-github-actions
ports:
- 9000:9000
env:
MINIO_DOMAIN: localhost
# Label used to access the service container
postgres:
# Docker Hub image
Expand All @@ -35,10 +41,17 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.22.4

- name: Build
run: make

- name: Test
run: make github_test
run: TZ=Europe/Stockholm make github_test
env:
AWS_S3_ENDPOINT: localhost:9000
AWS_S3_ACCESSKEY: minioadmin
AWS_S3_SECRETKEY: minioadmin
AWS_S3_TLS: false
AWS_S3_SKIPVERIFY: false
AWS_S3_BUCKET: test
36 changes: 36 additions & 0 deletions .github/workflows/releaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: goreleaser

on:
push:
# run only against tags
tags:
- '*'

permissions:
contents: write
# packages: write
# issues: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v3
with:
go-version: 1.22.4
cache: true
- uses: goreleaser/goreleaser-action@v2
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
# args: release --rm-dist
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.DS_Store
lib/libcryptolib.so
lib/libcryptolib.wasm
lib/libcfslib.so
bin
lib
coverage.txt
*.sw*
pkg/database/postgresql/*.sw*
Expand All @@ -8,3 +14,4 @@ pkg/security/*.sw*
pkg/logging/*.sw*
pkg/client/*.sw*
pkg/cmd/*.sw*
*.etcd
9 changes: 9 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# .goreleaser.yml
builds:
-
main: ./cmd
binary: colonies
env:
- CGO_ENABLED=0
ldflags:
- "-s -w -X 'main.BuildVersion={{ .Version }}' -X 'main.BuildTime={{ .Date }}'"
128 changes: 128 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
johan.kristiansson@ri.se.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
84 changes: 55 additions & 29 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
all: build
.PHONY: all build

IMAGE ?= colonyos/colonies
BUILD_IMAGE ?= colonyos/colonies
PUSH_IMAGE ?= colonyos/colonies:v1.8.18

VERSION := $(shell git rev-parse --short HEAD)
BUILDTIME := $(shell date -u '+%Y-%m-%dT%H:%M:%SZ')

GOLDFLAGS += -X 'main.BuildVersion=$(VERSION)'
GOLDFLAGS += -X 'main.BuildTime=$(BUILDTIME)'

build:
@CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o ./bin/colonies ./cmd/main.go
@go build -buildmode=c-shared -o ./lib/cryptolib.so ./internal/cryptolib/cryptolib.go
@GOOS=js GOARCH=wasm go build -o ./lib/cryptolib.wasm internal/cryptolib.wasm/cryptolib.go
@CGO_ENABLED=0 go build -ldflags="-s -w $(GOLDFLAGS)" -o ./bin/colonies ./cmd/main.go
@go build -buildmode=c-shared -o ./lib/libcryptolib.so ./internal/cryptolib/cryptolib.go
@go build -buildmode=c-shared -o ./lib/libcfslib.so ./internal/cfslib/cfslib.go
@GOOS=js GOARCH=wasm go build -o ./lib/libcryptolib.wasm internal/cryptolib.wasm/cryptolib.go

docker:
docker build -t $(IMAGE) .
container:
docker build -t $(BUILD_IMAGE) .

push-image:
docker push $(IMAGE)
push:
docker tag $(BUILD_IMAGE) $(PUSH_IMAGE)
docker push $(BUILD_IMAGE)
docker push $(PUSH_IMAGE)

coverage:
./buildtools/coverage.sh
Expand All @@ -22,27 +32,43 @@ build_cryptolib_ubuntu_2020:
cd buildtools; ./build_cryptolib_ubuntu.sh

test:
@cd internal/crypto; grc go test -v
@cd pkg/core; grc go test -v
@cd pkg/database/postgresql; grc go test -v
@cd pkg/rpc; grc go test -v
@cd pkg/security; grc go test -v
@cd pkg/security/crypto; grc go test -v
@cd pkg/security/validator; grc go test -v
@cd pkg/server; grc go test -v
@cd pkg/scheduler/basic; grc go test -v

github_test:
@cd internal/crypto; go test -v
@cd pkg/core; go test -v
@cd pkg/database/postgresql; go test -v
@cd pkg/rpc; go test -v
@cd pkg/security; go test -v
@cd pkg/security/crypto; go test -v
@cd pkg/security/validator; go test -v
@cd pkg/server; go test -v
@cd pkg/scheduler/basic; go test -v
@cd tests/reliability; grc go test -v --race
@cd internal/crypto; grc go test -v --race
@cd pkg/core; grc go test -v --race
@cd pkg/database/postgresql; grc go test -v --race
@cd pkg/rpc; grc go test -v --race
@cd pkg/security; grc go test -v --race
@cd pkg/security/crypto; grc go test -v --race
@cd pkg/security/validator; grc go test -v --race
@cd pkg/server; grc go test -v --race
@cd pkg/scheduler; grc go test -v --race
@cd pkg/parsers; grc go test -v --race
@cd pkg/utils; grc go test -v --race
@cd pkg/cluster; grc go test -v --race
@cd pkg/cron; grc go test -v --race
@cd pkg/fs; go test -v --race

github_test:
@cd tests/reliability; go test -v --race
@cd internal/crypto; go test -v --race
@cd pkg/core; go test -v --race
@cd pkg/database/postgresql; go test -v --race
@cd pkg/rpc; go test -v --race
@cd pkg/security; go test -v --race
@cd pkg/security/crypto; go test -v --race
@cd pkg/security/validator; go test -v --race
@cd pkg/server; go test -v --race
@cd pkg/scheduler; go test -v --race
@cd pkg/parsers; go test -v --race
@cd pkg/utils; go test -v --race
@cd pkg/cluster; go test -v --race
@cd pkg/cron; go test -v --race
@cd pkg/fs; go test -v --race

install:
cp ./bin/colonies /usr/local/bin
cp ./lib/cryptolib.so /usr/lib
cp ./lib/libcryptolib.so /usr/local/lib
cp ./lib/libcfslib.so /usr/local/lib

startdb:
docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=rFcLGNkgsNtksg6Pgtn9CumL4xXBQ7 --restart unless-stopped timescale/timescaledb:latest-pg16
Loading