-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removing bug on java function executions
- Loading branch information
Showing
4 changed files
with
75 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Copyright 2020 The KNIX Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
#FROM ubuntu:18.04 | ||
FROM nvidia/cuda:10.1-cudnn-devel-ubuntu18.04 | ||
|
||
# Install (as root) | ||
# Base | ||
RUN apt-get update --fix-missing | ||
RUN apt-get -y --no-install-recommends install build-essential | ||
RUN apt-get -y --no-install-recommends install netbase unzip file libmagic1 | ||
|
||
# Python | ||
RUN apt-get -y --no-install-recommends install python3 python3-dev | ||
RUN apt-get -y --no-install-recommends install python3-pip | ||
RUN apt-get -y --no-install-recommends install zlib1g libssl1.0 libsasl2-2 ca-certificates | ||
|
||
RUN /usr/bin/python3 -m pip install --upgrade pip | ||
|
||
RUN /usr/bin/python3 -m pip install setuptools | ||
RUN /usr/bin/python3 -m pip install thrift>=0.12.0 | ||
RUN /usr/bin/python3 -m pip install anytree | ||
RUN /usr/bin/python3 -m pip install ujsonpath | ||
RUN /usr/bin/python3 -m pip install requests | ||
RUN /usr/bin/python3 -m pip install retry | ||
# remove warnings from anytree package | ||
RUN /usr/bin/python3 -m pip install fastcache | ||
# Needed for multi-language support (currently just Java) | ||
RUN /usr/bin/python3 -m pip install thriftpy2 | ||
|
||
# Java | ||
RUN apt-get -y --no-install-recommends install openjdk-8-jdk-headless | ||
|
||
RUN apt-get -y --no-install-recommends install maven | ||
|
||
# Add components (as mfn) | ||
RUN groupadd -o -g 1000 -r mfn && useradd -d /opt/mfn -u 1000 -m -r -g mfn mfn | ||
RUN mkdir /opt/mfn/logs | ||
|
||
COPY build/queueservice.jar /opt/mfn/ | ||
ADD frontend/frontend /opt/mfn/frontend | ||
ADD build/SandboxAgent.tar.gz /opt/mfn/ | ||
ADD build/FunctionWorker.tar.gz /opt/mfn/ | ||
ADD build/LoggingService.tar.gz /opt/mfn/ | ||
|
||
ADD build/JavaRequestHandler.tar.gz /opt/mfn/ | ||
|
||
RUN chmod +x /opt/mfn/JavaRequestHandler/setup_maven.sh | ||
RUN /opt/mfn/JavaRequestHandler/./setup_maven.sh True | ||
RUN mvn -Duser.home=/tmp -DskipTests -gs /opt/mfn/JavaRequestHandler/maven/sandbox-mvn-settings.xml -f /opt/mfn/JavaRequestHandler/maven/init-mvn.pom.xml dependency:resolve-plugins | ||
|
||
RUN chown mfn:mfn -R /opt/mfn | ||
USER mfn | ||
WORKDIR /opt/mfn | ||
CMD ["python3", "/opt/mfn/SandboxAgent/sandboxagent.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit e251bf2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct, remainder of changes introduced for testing, resolved in subsequent commit
This looks like a bug: it is making a check rather than an assignment.