Skip to content

Commit

Permalink
Add docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
GDYendell committed Apr 12, 2024
1 parent 79af776 commit 237c16a
Show file tree
Hide file tree
Showing 25 changed files with 922 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.dockerignore
docker/
65 changes: 65 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Container CI

on:
push:
# Build for main, tags and PRs
# Builds from PRs are not pushed to the registry because of rules in the steps
branches:
- docker
tags:
- "*"
pull_request:

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

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # All history

- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Log in to GitHub Docker Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=ref,event=branch
type=ref,event=tag
type=raw,value=latest
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: Build runtime image
uses: docker/build-push-action@v2
with:
context: .
file: docker/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
140 changes: 140 additions & 0 deletions deploy/fp1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
[
{
"fr_setup": {
"fr_ready_cnxn": "tcp://127.0.0.1:10001",
"fr_release_cnxn": "tcp://127.0.0.1:10002"
},
"meta_endpoint": "tcp://*:10008"
},
{
"plugin": {
"load": {
"index": "eiger",
"name": "EigerProcessPlugin",
"library": "/odin/lib/libEigerProcessPlugin.so"
}
}
},
{
"plugin": {
"load": {
"index": "offset",
"name": "OffsetAdjustmentPlugin",
"library": "/odin/lib/libOffsetAdjustmentPlugin.so"
}
}
},
{
"plugin": {
"load": {
"index": "param",
"name": "ParameterAdjustmentPlugin",
"library": "/odin/lib/libParameterAdjustmentPlugin.so"
}
}
},
{
"plugin": {
"load": {
"index": "hdf",
"name": "FileWriterPlugin",
"library": "/odin/lib/libHdf5Plugin.so"
}
}
},
{
"plugin": {
"connect": {
"index": "eiger",
"connection": "frame_receiver"
}
}
},
{
"plugin": {
"connect": {
"index": "offset",
"connection": "eiger"
}
}
},
{
"plugin": {
"connect": {
"index": "param",
"connection": "offset"
}
}
},
{
"plugin": {
"connect": {
"index": "hdf",
"connection": "param"
}
}
},
{
"hdf": {
"dataset": {
"compressed_size": {
"datatype": "uint32",
"chunks": [1000]
}
}
}
},
{
"hdf": {
"dataset": {
"uid": {
"datatype": "uint64",
"chunks": [1000]
}
}
}
},
{
"param": {
"parameter": {
"uid": {
"adjustment": 1
}
}
}
},
{
"hdf": {
"process": {
"number": 4,
"rank": 0
}
}
},
{
"hdf": {
"file": {
"flush_error_duration": 10000,
"write_error_duration": 10000,
"close_error_duration": 10000,
"create_error_duration": 10000
}
}
},
{
"hdf": {
"file": {
"first_number": 1
}
}
},
{
"hdf": {
"dataset": {
"data": {
"indexes": true
}
}
}
}
]
140 changes: 140 additions & 0 deletions deploy/fp2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
[
{
"fr_setup": {
"fr_ready_cnxn": "tcp://127.0.0.1:10011",
"fr_release_cnxn": "tcp://127.0.0.1:10012"
},
"meta_endpoint": "tcp://*:10018"
},
{
"plugin": {
"load": {
"index": "eiger",
"name": "EigerProcessPlugin",
"library": "/odin/lib/libEigerProcessPlugin.so"
}
}
},
{
"plugin": {
"load": {
"index": "offset",
"name": "OffsetAdjustmentPlugin",
"library": "/odin/lib/libOffsetAdjustmentPlugin.so"
}
}
},
{
"plugin": {
"load": {
"index": "param",
"name": "ParameterAdjustmentPlugin",
"library": "/odin/lib/libParameterAdjustmentPlugin.so"
}
}
},
{
"plugin": {
"load": {
"index": "hdf",
"name": "FileWriterPlugin",
"library": "/odin/lib/libHdf5Plugin.so"
}
}
},
{
"plugin": {
"connect": {
"index": "eiger",
"connection": "frame_receiver"
}
}
},
{
"plugin": {
"connect": {
"index": "offset",
"connection": "eiger"
}
}
},
{
"plugin": {
"connect": {
"index": "param",
"connection": "offset"
}
}
},
{
"plugin": {
"connect": {
"index": "hdf",
"connection": "param"
}
}
},
{
"hdf": {
"dataset": {
"compressed_size": {
"datatype": "uint32",
"chunks": [1000]
}
}
}
},
{
"hdf": {
"dataset": {
"uid": {
"datatype": "uint64",
"chunks": [1000]
}
}
}
},
{
"param": {
"parameter": {
"uid": {
"adjustment": 1
}
}
}
},
{
"hdf": {
"process": {
"number": 4,
"rank": 1
}
}
},
{
"hdf": {
"file": {
"flush_error_duration": 10000,
"write_error_duration": 10000,
"close_error_duration": 10000,
"create_error_duration": 10000
}
}
},
{
"hdf": {
"file": {
"first_number": 1
}
}
},
{
"hdf": {
"dataset": {
"data": {
"indexes": true
}
}
}
}
]
Loading

0 comments on commit 237c16a

Please sign in to comment.