Skip to content

Commit

Permalink
chore (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
eroan-marie authored Dec 20, 2024
1 parent c92eb66 commit e62e093
Show file tree
Hide file tree
Showing 31 changed files with 102 additions and 16 deletions.
6 changes: 5 additions & 1 deletion base-notebook/resources/awscli/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# Copyright 2024 CNES - https://cnes.fr
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

set -e

# AWS cli
Expand All @@ -8,4 +13,3 @@ unzip -q awscliv2.zip
./aws/install
rm -rf /opt/aws /opt/awscliv2.zip
pip install --quiet awscli-plugin-endpoint
layer-cleanup.sh
3 changes: 2 additions & 1 deletion base-notebook/resources/layer-cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
# Copyright 2020 CS GROUP - France, http://www.c-s.fr
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

apt-get autoclean --yes
apt-get autoremove --yes
Expand Down
4 changes: 4 additions & 0 deletions base-notebook/resources/nbproxy/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# Copyright 2024 CNES - https://cnes.fr
# All rights reserved
# This file is provided under MIT license. See LICENSE file.
set -e

cp -r resources/nbproxy /opt/jupyter_proxy
Expand Down
3 changes: 2 additions & 1 deletion base-notebook/resources/nbproxy/jupyter_proxy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2020 CS GROUP - France, http://www.c-s.fr
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

"""
Return config on servers
Expand Down
3 changes: 2 additions & 1 deletion base-notebook/resources/nbproxy/setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2020 CS GROUP - France, http://www.c-s.fr
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

import setuptools

Expand Down
4 changes: 4 additions & 0 deletions base-notebook/resources/vnc/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# Copyright 2024 CNES - https://cnes.fr
# All rights reserved
# This file is provided under MIT license. See LICENSE file.
set -e

# noVNC setup
Expand Down
5 changes: 5 additions & 0 deletions base-notebook/resources/vnc/start-notebook-genvnctoken.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

# Generate token for VNC Server. VNC Server uses password of 8 char max.
export NOVNC_TOKEN=$(echo $(cat /proc/sys/kernel/random/uuid) | cut -c 1-8)

Expand Down
4 changes: 4 additions & 0 deletions base-notebook/resources/vscode/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# Copyright 2024 CNES - https://cnes.fr
# All rights reserved
# This file is provided under MIT license. See LICENSE file.
set -e

# Code server setup
Expand Down
3 changes: 2 additions & 1 deletion base-notebook/resources/vscode/start-notebook-vscode.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
# Copyright 2022 CS GROUP - France, http://www.c-s.fr
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

# VSCode base extensions copy if not already set
export PATH=/opt/code-server/bin:$PATH
Expand Down
4 changes: 4 additions & 0 deletions merge-apt.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# Copyright 2024 CNES - https://cnes.fr
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

# Check if at least two files are provided
if [ "$#" -lt 2 ]; then
Expand Down
6 changes: 5 additions & 1 deletion pangeo-notebook/resources/awscli/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# Copyright 2024 CNES - https://cnes.fr
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

set -e

# AWS cli
Expand All @@ -8,4 +13,3 @@ unzip -q awscliv2.zip
./aws/install
rm -rf /opt/aws /opt/awscliv2.zip
pip install --quiet awscli-plugin-endpoint
layer-cleanup.sh
3 changes: 2 additions & 1 deletion pangeo-notebook/resources/layer-cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
# Copyright 2020 CS GROUP - France, http://www.c-s.fr
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

apt-get autoclean --yes
apt-get autoremove --yes
Expand Down
4 changes: 4 additions & 0 deletions pangeo-notebook/resources/nbproxy/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# Copyright 2024 CNES - https://cnes.fr
# All rights reserved
# This file is provided under MIT license. See LICENSE file.
set -e

cp -r resources/nbproxy /opt/jupyter_proxy
Expand Down
3 changes: 2 additions & 1 deletion pangeo-notebook/resources/nbproxy/jupyter_proxy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2020 CS GROUP - France, http://www.c-s.fr
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

"""
Return config on servers
Expand Down
3 changes: 2 additions & 1 deletion pangeo-notebook/resources/nbproxy/setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2020 CS GROUP - France, http://www.c-s.fr
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

import setuptools

Expand Down
4 changes: 4 additions & 0 deletions pangeo-notebook/resources/qgis/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# Copyright 2024 CNES - https://cnes.fr
# All rights reserved
# This file is provided under MIT license. See LICENSE file.
set -e

# Libs
Expand Down
4 changes: 4 additions & 0 deletions pangeo-notebook/resources/vnc/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# Copyright 2024 CNES - https://cnes.fr
# All rights reserved
# This file is provided under MIT license. See LICENSE file.
set -e

# noVNC setup
Expand Down
5 changes: 5 additions & 0 deletions pangeo-notebook/resources/vnc/start-notebook-genvnctoken.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

# Generate token for VNC Server. VNC Server uses password of 8 char max.
export NOVNC_TOKEN=$(echo $(cat /proc/sys/kernel/random/uuid) | cut -c 1-8)

Expand Down
4 changes: 4 additions & 0 deletions pangeo-notebook/resources/vscode/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# Copyright 2024 CNES - https://cnes.fr
# All rights reserved
# This file is provided under MIT license. See LICENSE file.
set -e

# Code server setup
Expand Down
3 changes: 2 additions & 1 deletion pangeo-notebook/resources/vscode/start-notebook-vscode.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
# Copyright 2022 CS GROUP - France, http://www.c-s.fr
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

# VSCode base extensions copy if not already set
export PATH=/opt/code-server/bin:$PATH
Expand Down
6 changes: 5 additions & 1 deletion pytorch-notebook/resources/awscli/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# Copyright 2024 CNES - https://cnes.fr
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

set -e

# AWS cli
Expand All @@ -8,4 +13,3 @@ unzip -q awscliv2.zip
./aws/install
rm -rf /opt/aws /opt/awscliv2.zip
pip install --quiet awscli-plugin-endpoint
layer-cleanup.sh
3 changes: 2 additions & 1 deletion pytorch-notebook/resources/layer-cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
# Copyright 2020 CS GROUP - France, http://www.c-s.fr
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

apt-get autoclean --yes
apt-get autoremove --yes
Expand Down
4 changes: 4 additions & 0 deletions pytorch-notebook/resources/nbproxy/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# Copyright 2024 CNES - https://cnes.fr
# All rights reserved
# This file is provided under MIT license. See LICENSE file.
set -e

cp -r resources/nbproxy /opt/jupyter_proxy
Expand Down
3 changes: 2 additions & 1 deletion pytorch-notebook/resources/nbproxy/jupyter_proxy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2020 CS GROUP - France, http://www.c-s.fr
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

"""
Return config on servers
Expand Down

This file was deleted.

3 changes: 2 additions & 1 deletion pytorch-notebook/resources/nbproxy/setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2020 CS GROUP - France, http://www.c-s.fr
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

import setuptools

Expand Down
4 changes: 4 additions & 0 deletions pytorch-notebook/resources/qgis/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# Copyright 2024 CNES - https://cnes.fr
# All rights reserved
# This file is provided under MIT license. See LICENSE file.
set -e

# Libs
Expand Down
4 changes: 4 additions & 0 deletions pytorch-notebook/resources/vnc/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# Copyright 2024 CNES - https://cnes.fr
# All rights reserved
# This file is provided under MIT license. See LICENSE file.
set -e

# noVNC setup
Expand Down
5 changes: 5 additions & 0 deletions pytorch-notebook/resources/vnc/start-notebook-genvnctoken.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

# Generate token for VNC Server. VNC Server uses password of 8 char max.
export NOVNC_TOKEN=$(echo $(cat /proc/sys/kernel/random/uuid) | cut -c 1-8)

Expand Down
4 changes: 4 additions & 0 deletions pytorch-notebook/resources/vscode/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# Copyright 2024 CNES - https://cnes.fr
# All rights reserved
# This file is provided under MIT license. See LICENSE file.
set -e

# Code server setup
Expand Down
3 changes: 2 additions & 1 deletion pytorch-notebook/resources/vscode/start-notebook-vscode.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
# Copyright 2022 CS GROUP - France, http://www.c-s.fr
# Copyright 2024 CS GROUP - https://www.csgroup.eu
# All rights reserved
# This file is provided under MIT license. See LICENSE file.

# VSCode base extensions copy if not already set
export PATH=/opt/code-server/bin:$PATH
Expand Down

0 comments on commit e62e093

Please sign in to comment.