Commit 7ee183ec authored by vmasip's avatar vmasip
Browse files

DockerFile and k8s yaml

parents
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Project>
<MasterNode/>
<ComputeNode Name="10.1.19.30">
<InstallDir>/opt/COMPSs/</InstallDir>
<WorkingDir>/home/root/COMPSsWorker/</WorkingDir>
<User>root</User>
<Application>
</Application>
</ComputeNode>
<ComputeNode Name="10.1.19.29">
<InstallDir>/opt/COMPSs/</InstallDir>
<WorkingDir>/home/root/COMPSsWorker/</WorkingDir>
<User>root</User>
<Application>
<Pythonpath>/usr/lib/python3.8</Pythonpath>
</Application>
</ComputeNode>
<ComputeNode Name="10.1.2.21">
<InstallDir>/opt/COMPSs/</InstallDir>
<WorkingDir>/home/root/COMPSsWorker/</WorkingDir>
<User>root</User>
<Application>
<Pythonpath>/usr/lib/python3.8</Pythonpath>
</Application>
</ComputeNode>
<ComputeNode Name="10.1.54.20">
<InstallDir>/opt/COMPSs/</InstallDir>
<WorkingDir>/home/root/COMPSsWorker/</WorkingDir>
<User>root</User>
<Application>
<Pythonpath>/usr/lib/python3.8</Pythonpath>
</Application>
</ComputeNode>
<ComputeNode Name="10.1.48.23">
<InstallDir>/opt/COMPSs/</InstallDir>
<WorkingDir>/home/root/COMPSsWorker/</WorkingDir>
<User>root</User>
<Application>
<Pythonpath>/usr/lib/python3.8</Pythonpath>
</Application>
</ComputeNode>
</Project>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ResourcesList>
<MasterNode/>
<ComputeNode Name="10.1.19.30">
<Processor Name="MainProcessor">
<ComputingUnits>2</ComputingUnits>
</Processor>
<Adaptors>
<Adaptor Name="es.bsc.compss.nio.master.NIOAdaptor">
<SubmissionSystem>
<Interactive/>
</SubmissionSystem>
<Ports>
<MinPort>43001</MinPort>
<MaxPort>43002</MaxPort>
</Ports>
</Adaptor>
</Adaptors>
</ComputeNode>
<ComputeNode Name="10.1.19.29">
<Processor Name="MainProcessor">
<ComputingUnits>2</ComputingUnits>
</Processor>
<Adaptors>
<Adaptor Name="es.bsc.compss.nio.master.NIOAdaptor">
<SubmissionSystem>
<Interactive/>
</SubmissionSystem>
<Ports>
<MinPort>43001</MinPort>
<MaxPort>43002</MaxPort>
</Ports>
</Adaptor>
</Adaptors>
</ComputeNode>
<ComputeNode Name="10.1.2.21">
<Processor Name="MainProcessor">
<ComputingUnits>2</ComputingUnits>
</Processor>
<Adaptors>
<Adaptor Name="es.bsc.compss.nio.master.NIOAdaptor">
<SubmissionSystem>
<Interactive/>
</SubmissionSystem>
<Ports>
<MinPort>43001</MinPort>
<MaxPort>43002</MaxPort>
</Ports>
</Adaptor>
</Adaptors>
</ComputeNode>
<ComputeNode Name="10.1.54.20">
<Processor Name="MainProcessor">
<ComputingUnits>2</ComputingUnits>
</Processor>
<Adaptors>
<Adaptor Name="es.bsc.compss.nio.master.NIOAdaptor">
<SubmissionSystem>
<Interactive/>
</SubmissionSystem>
<Ports>
<MinPort>43001</MinPort>
<MaxPort>43002</MaxPort>
</Ports>
</Adaptor>
</Adaptors>
</ComputeNode>
<ComputeNode Name="10.1.48.23">
<Processor Name="MainProcessor">
<ComputingUnits>2</ComputingUnits>
</Processor>
<Adaptors>
<Adaptor Name="es.bsc.compss.nio.master.NIOAdaptor">
<SubmissionSystem>
<Interactive/>
</SubmissionSystem>
<Ports>
<MinPort>43001</MinPort>
<MaxPort>43002</MaxPort>
</Ports>
</Adaptor>
</Adaptors>
</ComputeNode>
</ResourcesList>
\ No newline at end of file
runcompss --resources=/var/local/compss_conf/resources.xml --project=/var/local/compss_conf/project.xml --master_name=10.1.19.30
\ No newline at end of file
FROM compss/compss:latest
ADD https://github.com/bsc-wdc/tutorial_apps/archive/refs/heads/stable.zip /tmp/
RUN unzip /tmp/stable.zip
apiVersion: apps/v1
kind: Deployment
metadata:
name: compss-deployment
namespace: compss-space
labels:
apps: compss
spec:
selector:
matchLabels:
app: compss
replicas: 5
template:
metadata:
labels:
app: compss
spec:
volumes:
- name: compss-vol
hostPath:
path: /var/local/compss_conf
type: DirectoryOrCreate
containers:
- name: compss-cont
image: my-compss-image:latest
imagePullPolicy: Always
ports:
- containerPort: 22
volumeMounts:
- mountPath: /var/local/compss_conf
name: compss-vol
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-ping
spec:
selector:
matchLabels:
run: my-ping
replicas: 4
template:
metadata:
labels:
run: my-ping
spec:
containers:
- name: my-ping
image: busybox
ports:
- containerPort: 80
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment