Skip to content

Commit f6e1468

Browse files
committed
Add apicula to doc/tools.tml
1 parent 14b7509 commit f6e1468

File tree

5 files changed

+25
-9
lines changed

5 files changed

+25
-9
lines changed

apicula.dockerfile

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# syntax=docker/dockerfile:experimental
12
# Authors:
23
# Unai Martinez-Corral
34
# Lucas Teske
@@ -21,20 +22,23 @@
2122
FROM hdlc/build:build AS build
2223

2324
RUN apt-get update -qq \
24-
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends python3-setuptools python3-pip
25+
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends wget
2526

26-
RUN mkdir /tmp/apicula \
27-
&& cd /tmp/apicula \
28-
&& pip3 install apycula --target /tmp/apicula
27+
RUN mkdir /opt/apicula \
28+
&& wget https://files.pythonhosted.org/packages/1a/d6/b3162f87ff114d639095fe7c0655080ee16caff9037d6629f738d8b28d92/Apycula-0.0.1a6.tar.gz \
29+
&& tar -xvf Apycula-0.0.1a6.tar.gz --strip-components=1 -C /opt/apicula \
30+
&& ls -lah /opt/apicula
2931

3032
#---
3133

3234
FROM scratch AS pkg
33-
COPY --from=build /tmp/apicula /apicula
35+
COPY --from=build /opt/apicula /apicula
3436

3537
#---
3638

3739
FROM hdlc/build:base
38-
RUN apt-get update -qq \
39-
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends python3-setuptools python3-pip \
40-
&& pip3 install apycula
40+
41+
RUN --mount=type=cache,from=build,src=/opt/apicula,target=/opt/apicula cd /opt/apicula \
42+
&& python3 setup.py install \
43+
&& rm -rf ~/.cache
44+

base.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ RUN apt-get update -qq \
2424
ca-certificates \
2525
curl \
2626
python3 \
27+
python3-setuptools \
2728
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \
2829
&& update-ca-certificates \
2930
&& rm -rf /var/lib/apt/lists/*

doc/tools.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,12 @@ z3:
212212
- 'formal:min'
213213
- 'formal'
214214
- 'formal:all'
215+
216+
#---
217+
218+
apicula:
219+
url: 'https://hdl.github.io/awesome/items/apicula'
220+
pkg:
221+
- 'apicula'
222+
use:
223+
- 'apicula'

test/apicula.pkg.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# Authors:
44
# Unai Martinez-Corral
5+
# Lucas Teske
56
#
67
# Copyright 2020-2021 Unai Martinez-Corral <[email protected]>
78
#
@@ -23,6 +24,6 @@ set -e
2324

2425
cd $(dirname "$0")
2526

26-
./_tree.sh
27+
tree /
2728

2829
./_todo.sh

test/apicula.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# Authors:
44
# Unai Martinez-Corral
5+
# Lucas Teske
56
#
67
# Copyright 2020-2021 Unai Martinez-Corral <[email protected]>
78
#

0 commit comments

Comments
 (0)