Skip to content

Commit 6ef1dcf

Browse files
committed
added libraries and new docker image for alpine linux
1 parent f6feb9f commit 6ef1dcf

16 files changed

Lines changed: 569 additions & 2 deletions

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.jar filter=lfs diff=lfs merge=lfs -text

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,5 @@ package.json
118118
.limes/*
119119
*.ser
120120
.DS_Store
121-
.scannerwork/*
121+
.scannerwork/*
122+
/infra/alpine/libraries/

dags/pipelines/notice_processor_pipelines.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def notice_transformation_pipeline(notice: Notice, mongodb_client: MongoClient)
3838
message=f"This notice {notice.ted_id} is not eligible for transformation. Notice info: "
3939
f"form_number=[{notice.normalised_metadata.form_number}],"
4040
f" eform_subtype=[{notice.normalised_metadata.eforms_subtype}], "
41-
f"xsd_version=[{notice.normalised_metadata.xsd_version}]. Check mapping suites!",
41+
f"xsd_version=[{notice.normalised_metadata.xsd_version}], "
42+
f"eform_sdk_version=[{notice.normalised_metadata.eform_sdk_version}]. Check mapping suites!",
4243
notice_id=notice.ted_id, domain_action=notice_transformation_pipeline.__name__, notice_status=notice.status,
4344
notice_form_number=notice.normalised_metadata.form_number,
4445
notice_eforms_subtype=notice.normalised_metadata.eforms_subtype)

infra/alpine/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Use the official Alpine Linux image
2+
FROM alpine:3.20
3+
4+
# Update the package list and install sudo and shadow (which includes useradd)
5+
RUN apk --no-cache add sudo=1.9.15_p5-r0 shadow=4.15.1-r0
6+
7+
# Create a new non-root user and set a home directory
8+
RUN useradd -m newuser
9+
10+
RUN echo "newuser ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
11+
12+
# Switch to the non-root user
13+
USER newuser
14+
15+
# Set the working directory to the new user's home directory
16+
WORKDIR /home/newuser
17+
COPY libraries .
18+
# Default command to execute when running the container
19+
CMD ["/bin/sh"]

libraries/.limes/limes.jar

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:88363c8d83f41d7a6dec9ea9b66cb4a72dd2f022343f58ec03dfb814722b43b6
3+
size 128740593

libraries/.rmlmapper/rmlmapper.jar

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:28b3e1b6b5718768e9465ddddee204d127889ddd02db5736913d959009e765d0
3+
size 77468637
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:97d1acaac82409be42e622d7a54d3ae9d08517e8aefdea3d2ba9791150c2f02d
3+
size 268780
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:47dcde8986019314ef78ae7280a94973a21d2ed95075a40a000b42da956429e1
3+
size 84091
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
(This notice is included in the Saxon distribution because Saxon's XPath parser
3+
was originally derived from an XPath parser written by James Clark and made available
4+
under this license. The Saxon XPath parser has since diverged very substantially, but
5+
there are traces of the original code still present.)
6+
7+
Copyright (c) 1998, 1999 James Clark
8+
9+
Permission is hereby granted, free of charge, to any person obtaining
10+
a copy of this software and associated documentation files (the
11+
"Software"), to deal in the Software without restriction, including
12+
without limitation the rights to use, copy, modify, merge, publish,
13+
distribute, sublicense, and/or sell copies of the Software, and to
14+
permit persons to whom the Software is furnished to do so, subject to
15+
the following conditions:
16+
17+
The above copyright notice and this permission notice shall be included
18+
in all copies or substantial portions of the Software.
19+
20+
THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS
21+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23+
IN NO EVENT SHALL JAMES CLARK BE LIABLE FOR ANY CLAIM, DAMAGES OR
24+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
25+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26+
OTHER DEALINGS IN THE SOFTWARE.
27+
28+
Except as contained in this notice, the name of James Clark shall
29+
not be used in advertising or otherwise to promote the sale, use or
30+
other dealings in this Software without prior written authorization
31+
from James Clark.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
(This notice is included in the Saxon distribution because the JLine2
2+
library is included, unmodified, in the Saxon distribution. It is used
3+
to support interactive command line editing, autocompletion, and session
4+
history by the Gizmo utility.)
5+
6+
Copyright (c) 2002-2016, the original author or authors.
7+
All rights reserved.
8+
9+
http://www.opensource.org/licenses/bsd-license.php
10+
11+
Redistribution and use in source and binary forms, with or
12+
without modification, are permitted provided that the following
13+
conditions are met:
14+
15+
Redistributions of source code must retain the above copyright
16+
notice, this list of conditions and the following disclaimer.
17+
18+
Redistributions in binary form must reproduce the above copyright
19+
notice, this list of conditions and the following disclaimer
20+
in the documentation and/or other materials provided with
21+
the distribution.
22+
23+
Neither the name of JLine nor the names of its contributors
24+
may be used to endorse or promote products derived from this
25+
software without specific prior written permission.
26+
27+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
29+
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
30+
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
31+
EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
32+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
33+
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
34+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
36+
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
38+
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
39+
OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)