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

Issue #18

Draft
wants to merge 24 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/another.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**Another template**
23 changes: 23 additions & 0 deletions .github/workflows/build_docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on:
push:
branches: [docker]
jobs:
build_docker_container:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup Podman
run: |
sudo apt-get update
sudo apt-get install -y podman
- name: Build container
env:
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
SINGULARITY_VERSION: 4.1.0
S3CMD_VERSION: 2.2.0
run: |
echo "Singularity version is ${SINGULARITY_VERSION}"
echo "s3cmd version is ${S3CMD_VERSION}"
podman login -u heerener -p ${DOCKER_HUB_TOKEN}
podman build -t heerener/singularitah:0.1 --build-arg "S3CMD_VERSION=${S3CMD_VERSION}" --build-arg "SINGULARITY_VERSION=${SINGULARITY_VERSION}" -f Dockerfile .
podman push heerener/singularitah:0.1
5 changes: 5 additions & 0 deletions .github/workflows/waste_time.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ jobs:
if: ${{ github.event.pull_request.draft == true && matrix.config.moo == 'herpaderp' }}
run: |
echo "Doing the thing"
echo "Thing in a file" > blub
sleep 5
echo "The thing is done"
- name: Always run
run: |
set -x
echo "This thing always happens"
if [ -f blub ]; then cat blub; else echo "No blub"; fi
sleep 5
echo "And has now been concluded"

Expand All @@ -52,10 +55,12 @@ jobs:
- name: First step
run: |
echo "Doing the thing"
echo "Thing" > blub
sleep 5
echo "The thing is done"
- name: Second step
run: |
echo "Doing the other thing"
if [ -f blub ]; then cat blub; else echo "No blub"; fi
sleep 5
echo "The other thing is also done"
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM alpine:3.18
# https://github.com/mattn/go-sqlite3/issues/1164#issuecomment-1848677118

ARG SINGULARITY_VERSION
ARG S3CMD_VERSION

RUN echo "Singularity version ${SINGULARITY_VERSION}"
RUN echo "s3cmd version ${S3CMD_VERSION}"

RUN apk add bash linux-headers libseccomp-dev glib-dev fuse3-dev libc-dev gcc make autoconf automake libtool squashfs-tools go wget py3-dateutil
RUN wget https://github.com/sylabs/singularity/releases/download/v${SINGULARITY_VERSION}/singularity-ce-${SINGULARITY_VERSION}.tar.gz
RUN tar xf singularity-ce-${SINGULARITY_VERSION}.tar.gz
RUN cd singularity-ce-${SINGULARITY_VERSION} && \
./mconfig && \
cd builddir && \
make && \
make install
RUN singularity --version

RUN mkdir /opt/s3cmd
COPY _s3cfg /root/.s3cfg
RUN cat /root/.s3cfg
RUN wget https://github.com/s3tools/s3cmd/releases/download/v${S3CMD_VERSION}/s3cmd-${S3CMD_VERSION}.tar.gz
RUN tar xf s3cmd-${S3CMD_VERSION}.tar.gz -C /opt/s3cmd/ --strip-components=1
ENV PATH="${PATH}:/opt/s3cmd"

ENTRYPOINT ["/bin/bash"]
87 changes: 87 additions & 0 deletions _s3cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
[default]
access_key =
access_token =
add_encoding_exts =
add_headers =
bucket_location = us-east-1
ca_certs_file =
cache_file =
check_ssl_certificate = True
check_ssl_hostname = True
cloudfront_host = cloudfront.amazonaws.com
connection_max_age = 5
connection_pooling = True
content_disposition =
content_type =
default_mime_type = binary/octet-stream
delay_updates = False
delete_after = False
delete_after_fetch = False
delete_removed = False
dry_run = False
enable_multipart = True
encoding = UTF-8
encrypt = False
expiry_date =
expiry_days =
expiry_prefix =
follow_symlinks = False
force = False
get_continue = False
gpg_command = /usr/bin/gpg
gpg_decrypt = %(gpg_command)s -d --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
gpg_encrypt = %(gpg_command)s -c --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
gpg_passphrase =
guess_mime_type = True
host_base = s3.amazonaws.com
host_bucket = %(bucket)s.s3.amazonaws.com
human_readable_sizes = False
invalidate_default_index_on_cf = False
invalidate_default_index_root_on_cf = True
invalidate_on_cf = False
kms_key =
limit = -1
limitrate = 0
list_md5 = False
log_target_prefix =
long_listing = False
max_delete = -1
mime_type =
multipart_chunk_size_mb = 15
multipart_copy_chunk_size_mb = 1024
multipart_max_chunks = 10000
preserve_attrs = True
progress_meter = True
proxy_host =
proxy_port = 0
public_url_use_https = False
put_continue = False
recursive = False
recv_chunk = 65536
reduced_redundancy = False
requester_pays = False
restore_days = 1
restore_priority = Standard
secret_key =
send_chunk = 65536
server_side_encryption = False
signature_v2 = False
signurl_use_https = False
simpledb_host = sdb.amazonaws.com
skip_existing = False
socket_timeout = 300
ssl_client_cert_file =
ssl_client_key_file =
stats = False
stop_on_error = False
storage_class =
throttle_max = 100
upload_id =
urlencoding_mode = normal
use_http_expect = False
use_https = True
use_mime_magic = True
verbosity = WARNING
website_endpoint = http://%(bucket)s.s3-website-%(location)s.amazonaws.com/
website_error =
website_index = index.html