Skip to content

Commit

Permalink
Update org name
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollo3zehn committed Mar 28, 2024
1 parent 34ed630 commit dfffa83
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Nexus Remote Data Source

[![GitHub Actions](https://github.com/malstroem-labs/nexus-sources-remote/actions/workflows/build-and-publish.yml/badge.svg?branch=master)](https://github.com/malstroem-labs/nexus-sources-remote/actions)
[![GitHub Actions](https://github.com/nexus-main/nexus-sources-remote/actions/workflows/build-and-publish.yml/badge.svg?branch=master)](https://github.com/nexus-main/nexus-sources-remote/actions)

The RPC data source is different from normal data sources in that it allows any code to be executed which imposes a security risk. Additionally, the command to be executed (e.g. python) might not exist in the current environment. Nexus is distributed as Docker Container with minimum dependencies. Therefore another solution must exist to extend the system. An option would be to use Docker-in-Docker (`dind`) and start a new container which is just another command for the RCP data source. The container itself could be a calculation-only environment with network access (but no drive access).

Expand Down
6 changes: 3 additions & 3 deletions setup/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ services:
image: mcr.microsoft.com/dotnet/sdk:8.0
volumes:
- /var/lib/nexus/docker/nexus-main/.ssh:/root/.ssh
entrypoint: bash -c "cd; curl -s -O 'https://raw.githubusercontent.com/malstroem-labs/nexus-sources-remote/master/setup/docker/setup-main.sh'; source 'setup-main.sh'"
entrypoint: bash -c "cd; curl -s -O 'https://raw.githubusercontent.com/nexus-main/nexus-sources-remote/master/setup/docker/setup-main.sh'; source 'setup-main.sh'"
restart: always

satellite-python:
container_name: nexus-python
image: python:3.9.0
volumes:
- /var/lib/nexus/docker/nexus-python/.ssh:/root/.ssh
entrypoint: bash -c "satellite_id=python;cd; curl -s -O 'https://raw.githubusercontent.com/malstroem-labs/nexus-sources-remote/master/setup/docker/setup-satellite.sh'; source 'setup-satellite.sh'"
entrypoint: bash -c "satellite_id=python;cd; curl -s -O 'https://raw.githubusercontent.com/nexus-main/nexus-sources-remote/master/setup/docker/setup-satellite.sh'; source 'setup-satellite.sh'"
restart: always

satellite-nexus:
container_name: nexus-dotnet
image: mcr.microsoft.com/dotnet/sdk:8.0
volumes:
- /var/lib/nexus/docker/nexus-dotnet/.ssh:/root/.ssh
entrypoint: bash -c "satellite_id=dotnet;cd; curl -s -O 'https://raw.githubusercontent.com/malstroem-labs/nexus-sources-remote/master/setup/docker/setup-satellite.sh'; source 'setup-satellite.sh'"
entrypoint: bash -c "satellite_id=dotnet;cd; curl -s -O 'https://raw.githubusercontent.com/nexus-main/nexus-sources-remote/master/setup/docker/setup-satellite.sh'; source 'setup-satellite.sh'"
restart: always
4 changes: 2 additions & 2 deletions setup/docker/setup-main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ echo "${green}Set up SSH client${white}"
apt update
apt install openssh-client -y

echo "Clone repository ${green}https://github.com/malstroem-labs/nexus-sources-remote${white}"
git clone https://github.com/malstroem-labs/nexus-sources-remote
echo "Clone repository ${green}https://github.com/nexus-main/nexus-sources-remote${white}"
git clone https://github.com/nexus-main/nexus-sources-remote
cd nexus-sources-remote

mkdir -p /var/lib/nexus
Expand Down
6 changes: 3 additions & 3 deletions setup/docker/setup-satellite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' '/etc/ssh/ss
service ssh start

echo "${green}Load run.sh, run-user.sh and ${satellite_id}/satellite.sh scripts${white}"
curl -s -O 'https://raw.githubusercontent.com/malstroem-labs/nexus-sources-remote/master/setup/docker/run.sh'
curl -s -O 'https://raw.githubusercontent.com/malstroem-labs/nexus-sources-remote/master/setup/docker/run-user.sh'
curl -s -O "https://raw.githubusercontent.com/malstroem-labs/nexus-sources-remote/master/setup/docker/${satellite_id}/satellite.sh"
curl -s -O 'https://raw.githubusercontent.com/nexus-main/nexus-sources-remote/master/setup/docker/run.sh'
curl -s -O 'https://raw.githubusercontent.com/nexus-main/nexus-sources-remote/master/setup/docker/run-user.sh'
curl -s -O "https://raw.githubusercontent.com/nexus-main/nexus-sources-remote/master/setup/docker/${satellite_id}/satellite.sh"

mkdir -p /var/lib/nexus
touch "/var/lib/nexus/ready"
Expand Down
10 changes: 5 additions & 5 deletions solution.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"authors": "https://github.com/malstroem-labs",
"company": "https://github.com/malstroem-labs",
"copyright": "malstroem-labs",
"authors": "https://github.com/nexus-main",
"company": "https://github.com/nexus-main",
"copyright": "nexus-main",
"product": "Nexus.Sources.Remote",
"license": "MIT",
"project-url": "https://malstroem-labs.github.io/Nexus",
"repository-url": "https://github.com/malstroem-labs/nexus-sources-remote"
"project-url": "https://nexus-main.github.io/Nexus",
"repository-url": "https://github.com/nexus-main/nexus-sources-remote"
}
4 changes: 2 additions & 2 deletions src/Nexus.Sources.Remote/Remote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ namespace Nexus.Sources;

[ExtensionDescription(
"Provides access to remote databases",
"https://github.com/malstroem-labs/nexus-sources-remote",
"https://github.com/malstroem-labs/nexus-sources-remote")]
"https://github.com/nexus-main/nexus-sources-remote",
"https://github.com/nexus-main/nexus-sources-remote")]
public partial class Remote : IDataSource, IDisposable
{
#region Fields
Expand Down
2 changes: 1 addition & 1 deletion src/remoting/python-remoting/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
long_description=long_description,
long_description_content_type="text/markdown",
author=str(os.getenv("AUTHORS")),
url="https://github.com/malstroem-labs/nexus-sources-remote",
url="https://github.com/nexus-main/nexus-sources-remote",
packages=[
"nexus_remoting"
],
Expand Down
2 changes: 1 addition & 1 deletion tests/Nexus.Sources.Remote.Tests/SetupDockerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private static DataSourceContext CreateContext(string satelliteId, string comman
["listen-address"] = JsonSerializer.SerializeToElement("0.0.0.0"),
["template"] = JsonSerializer.SerializeToElement("docker"),
["command"] = JsonSerializer.SerializeToElement(command),
["git-url"] = JsonSerializer.SerializeToElement($"https://github.com/malstroem-labs/nexus-remoting-template-{satelliteId}"),
["git-url"] = JsonSerializer.SerializeToElement($"https://github.com/nexus-main/nexus-remoting-template-{satelliteId}"),
["git-tag"] = JsonSerializer.SerializeToElement(version)
},
RequestConfiguration: default
Expand Down

0 comments on commit dfffa83

Please sign in to comment.