-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Google translate Kurstitel, Docker-Container, Modelupdown included
- Loading branch information
Showing
20 changed files
with
865 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
alias ls='ls --color=auto' | ||
alias ll='ls -alFh' | ||
alias la='ls -A' | ||
alias l='ls -CF' |
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,41 @@ | ||
#docker build -f Dockerfile --build-arg uid=${COMPOSE_UID:-1000} --build-arg gid=${COMPOSE_GID:-1000} --rm --tag derive_conceptualspaces . | ||
#docker run -it --name derive_conceptualspaces_cont -v /home/chris/Documents/UNI_neu/Masterarbeit/data/:/opt/data derive_conceptualspaces bash | ||
#docker start derive_conceptualspaces_cont -i | ||
#docker container rm derive_conceptualspaces_cont -f && docker build -f Dockerfile --build-arg uid=${COMPOSE_UID:-1000} --build-arg gid=${COMPOSE_GID:-1000} --rm --tag derive_conceptualspaces . | ||
|
||
ARG PYTHON_VERSION=3.9.1 | ||
FROM python:${PYTHON_VERSION}-buster | ||
|
||
ARG uid | ||
ARG gid | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y bash git vim curl zsh htop tmux unzip nano | ||
|
||
ARG WORKDIR=/opt/derive_conceptualspaces | ||
COPY . ${WORKDIR} | ||
WORKDIR ${WORKDIR} | ||
ENV PYTHONPATH=${WORKDIR} | ||
ENV RUNNING_IN_DOCKER=1 | ||
|
||
RUN ln -sf /usr/local/bin/python3 /usr/bin/python3 | ||
RUN ln -sf /usr/bin/python3 /usr/bin/python | ||
RUN python3 -m pip install --upgrade pip | ||
RUN ln -sf /usr/bin/pip3 /usr/bin/pip | ||
RUN pip install -r ./requirements.txt | ||
|
||
RUN groupadd -g ${gid} developer \ | ||
&& useradd -g developer -u ${uid} -m developer | ||
USER developer | ||
|
||
#https://dev.to/arctic_hen7/setting-up-zsh-in-docker-263f | ||
RUN mkdir -p /home/developer/.antigen | ||
RUN curl -L git.io/antigen > /home/developer/.antigen/antigen.zsh | ||
COPY .dockershell.sh /home/developer/.zshrc | ||
USER root | ||
RUN chown -R developer:developer /home/developer/.antigen /home/developer/.zshrc | ||
USER developer | ||
RUN /bin/zsh /home/developer/.zshrc | ||
|
||
ENV HOME=/home/developer | ||
ENV SHELL=/bin/zsh |
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
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,12 @@ | ||
"""Section 4.2 in DESC15""" | ||
from src.static.settings import SPACES_DATA_BASE, DATA_SET, MDS_DIMENSIONS | ||
from src.main.load_data.load_semanticspaces import load_mds_representation, get_names, get_grouped_candidates | ||
|
||
def main(): | ||
mds, mds_path = load_mds_representation(SPACES_DATA_BASE, DATA_SET, MDS_DIMENSIONS) | ||
names, names_path = get_names(SPACES_DATA_BASE, DATA_SET) | ||
candidates, group_vectors = get_grouped_candidates(SPACES_DATA_BASE, DATA_SET, MDS_DIMENSIONS) | ||
print() | ||
|
||
if __name__ == '__main__': | ||
main() |
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
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,15 @@ | ||
import os | ||
from src.main.util.model_downloader_seafile import get_write_account_data, SeafileModelSyncer, model_downloader_logger | ||
from src.static import settings | ||
|
||
model_downloader_logger.setLevel("INFO") | ||
localpath = settings.DATA_BASE | ||
account, password, server, repoid, repopath, modelversions = get_write_account_data() | ||
modelsyncer = SeafileModelSyncer(server, account, password, repoid, repopath) | ||
if modelsyncer.repo is not None: | ||
print("Do you really want to upload the following:") | ||
for mname, mversion in modelversions.items(): | ||
if mversion is not None: | ||
print(f"{mname} in version {mversion}") | ||
if input("? [y/n]").lower() == "y": | ||
modelsyncer.upload_modeldirs(localpath, modelversions, overwrite_version=False) |
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
Oops, something went wrong.