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

Purge per NREL management and legal #551

Merged
merged 3 commits into from
Dec 13, 2023
Merged
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
19 changes: 0 additions & 19 deletions .bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,6 @@ export DYLD_LIBRARY_PATH # for Mac
#==============================================================================


#------------------------------------------------------------------------------

# Uncomment the following if you are using the Xpress solver
#------------------------------------------------------------------------------
#XPRESSDIR="/usr/local/opt/xpress"
#DYLD_LIBRARY_PATH="${XPRESSDIR}/lib:${SRC_DIR}:${DYLD_LIBRARY_PATH}" # for Mac
#LD_LIBRARY_PATH="${XPRESSDIR}/lib:${SRC_DIR}:${LD_LIBRARY_PATH}" # for Linux
#CLASSPATH="${XPRESSDIR}/lib/xprs.jar:${XPRESSDIR}/lib/xprb.jar:${XPRESSDIR}/lib/xprm.jar:${CLASSPATH}"
#PATH="${XPRESSDIR}/bin:${PATH}"
#
#export PATH
#export XPRESS="$XPRESSDIR/bin"
#export DYLD_LIBRARY_PATH
#export LD_LIBRARY_PATH
#export CLASSPATH
#source /opt/xpressmp/bin/xpvars.sh
#==============================================================================


#------------------------------------------------------------------------------
# You can change the following to add Julia to your system Path
#------------------------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#pattern filter=crypt diff=crypt
julia_src/xpress/licenseserver/xpauth.xpr filter=crypt diff=crypt merge=crypt
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,4 @@ all_data*
docs/formulation/*aux
docs/formulation/*log

# Customized docker files
docker-compose.xpressOS.yml
Dockerfile.xpressOS.pyjul

/.werf_secret_key
10 changes: 0 additions & 10 deletions docker-compose.nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,6 @@ services:
- django-nginx
restart: "on-failure"

licenseserver:
build:
context: julia_src/xpress/licenseserver
mac_address: c4:b3:01:d3:d5:eb
command: xpserver
expose:
- 27100

julia-nginx:
container_name: julia-nginx
build:
Expand All @@ -91,8 +83,6 @@ services:
- JULIA_NUM_THREADS=2
expose:
- 8081
depends_on:
- licenseserver
volumes:
- ./julia_src:/opt/julia_src

Expand Down
9 changes: 0 additions & 9 deletions docker-compose.nojulia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,5 @@ services:
volumes:
- .:/opt/reopt

licenseserver:
container_name: licenseserver-nojul
build:
context: julia_src/xpress/licenseserver
mac_address: c4:b3:01:d3:d5:eb
command: xpserver
expose:
- 27100

volumes:
pgdata:
13 changes: 0 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,13 @@ services:
- 8000:8000
volumes:
- .:/opt/reopt

licenseserver:
container_name: xpress_license_server
build:
context: julia_src/xpress/licenseserver
mac_address: c4:b3:01:d3:d5:eb
command: xpserver
expose:
- 27100

julia:
container_name: julia_api
build:
context: julia_src/
args:
- XPRESS_LICENSE_HOST=xpress_license_server
command: julia --project=/opt/julia_src http.jl
ports:
- "8081:8081"
depends_on:
- licenseserver
volumes:
- ./julia_src:/opt/julia_src
19 changes: 0 additions & 19 deletions julia_src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,10 @@
FROM reopt/xpressbase AS xpress

FROM julia:1.8.5

# Install NREL root certs for machines running on NREL's network.
ARG NREL_ROOT_CERT_URL_ROOT=""
RUN set -x && if [ -n "$NREL_ROOT_CERT_URL_ROOT" ]; then curl -fsSLk -o /usr/local/share/ca-certificates/nrel_root.crt "${NREL_ROOT_CERT_URL_ROOT}/nrel_root.pem" && curl -fsSLk -o /usr/local/share/ca-certificates/nrel_xca1.crt "${NREL_ROOT_CERT_URL_ROOT}/nrel_xca1.pem" && update-ca-certificates; fi
ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt

# Install Xpress solver for client
ENV XPRESSDIR=/opt/xpressmp
ENV XPRESS=/opt/xpressmp/bin
ENV LD_LIBRARY_PATH=${XPRESSDIR}/lib:${LD_LIBRARY_PATH}
ENV LIBPATH=${XPRESSDIR}/lib:${LIBPATH}
ARG CLASSPATH=${XPRESSDIR}/lib/xprs.jar:${CLASSPATH}
ARG CLASSPATH=${XPRESSDIR}/lib/xprb.jar:${CLASSPATH}
ENV CLASSPATH=${XPRESSDIR}/lib/xprm.jar:${CLASSPATH}
ENV PATH=${XPRESSDIR}/bin:${PATH}

WORKDIR /opt/reopt/solver
COPY --from=xpress /opt/reopt/solver .
RUN sed -i -e 's/\r$//' install.sh
ARG XPRESS_LICENSE_HOST=licenseserver
RUN set -x && printf "f\nc\n\nn\n\n${XPRESS_LICENSE_HOST}\ny\n" | ./install.sh >> license_info.txt;
RUN rm xp8.12.3_linux_x86_64.tar.gz

# Install gfortran for /ghpghx
RUN apt-get update && apt-get install -y \
gfortran
Expand Down
10 changes: 0 additions & 10 deletions julia_src/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
version: "2.1"

services:
licenseserver:
container_name: xpress_license_server_dev
build:
context: ./xpress/licenseserver
mac_address: c4:b3:01:d3:d5:eb
command: xpserver
expose:
- 27100

julia:
container_name: julia_api_dev
build:
context: .
args:
- XPRESS_LICENSE_HOST=xpress_license_server_dev
command: julia --project="/opt/julia_src" http.jl
ports:
- "8081:8081"
7 changes: 1 addition & 6 deletions julia_src/xpress/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
FROM ubuntu:latest
# For creating base image of Julia API. Requires an untracked tar.gz file for FICO Xpress
# Used in both production and local development

WORKDIR /opt/reopt/solver
COPY xp8.12.3_linux_x86_64.tar.gz .
COPY install.sh .
# For creating base image of Julia API
23 changes: 0 additions & 23 deletions julia_src/xpress/licenseserver/Dockerfile

This file was deleted.

34 changes: 0 additions & 34 deletions julia_src/xpress/licenseserver/xpauth.xpr

This file was deleted.

Loading