Skip to content

Commit

Permalink
double typo (#96)
Browse files Browse the repository at this point in the history
* final tweak

* final tweak2

* typos for days
  • Loading branch information
dirtycajunrice authored Jan 16, 2019
1 parent 397123e commit 55a69cf
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 6 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ ENV DEBUG="False"

COPY / /app

RUN \
python3 -m pip install -r /app/requirements.txt && \
chown -R abc:abc \
/config \
/app
RUN python3 -m pip install -r /app/requirements.txt

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV DEBUG="False"

COPY / /app

COPY /tmp/qemu-arm-static /usr/bin/qemu-aarch64-static
COPY /tmp/qemu-aarch64-static /usr/bin/qemu-aarch64-static

RUN python3 -m pip install -r /app/requirements.txt

Expand Down
37 changes: 37 additions & 0 deletions manifest_generator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import yaml

from varken import VERSION

org = 'boerderij'
project = 'varken'
namespace = f"{org}/{project}"

yaml_arr = []
tags = ['latest', VERSION]

# Docker image, arch, variant, os
arch_list = [('arm', 'arm', 'v6', 'linux'),
('armhf', 'arm', 'v7', 'linux'),
('arm64', 'arm64', 'v8', 'linux'),
('amd64', 'amd64', None, 'linux')]

for tag in tags:
yaml_doc = {
'image': f'{namespace}:{tag}',
'manifests': []
}
for arch in arch_list:
info = {
'image': f"{namespace}:{tag}-{arch[0]}",
'platform': {
'architecture': arch[1],
'os': arch[3]
}
}
if arch[2]:
info['platform']['variant'] = arch[2]
yaml_doc['manifests'].append(info)
yaml_arr.append(yaml_doc)

with open(f".manifest.yaml", 'w') as file:
yaml.dump_all(yaml_arr, file, default_flow_style=False)

0 comments on commit 55a69cf

Please sign in to comment.