Posts Tagged ‘Getting Started’

Hello Fedora with docker in 3 steps

December 10, 2013

It really is this simple,

1. sudo yum install -y docker-io

2. sudo systemctl start docker

3. sudo docker run mattdm/fedora cat /etc/system-release

Bonus, for when you want to go deeper –

If you don’t want to use sudo all the time, which you shouldn’t want to do, you add yourself to the docker group,

$ sudo usermod -a -G docker $USER

If you don’t want to log out and back in, make your new group effective immediately,

$ su - $USER
$ groups | grep -q docker && echo Good job || echo Try again

If you want to run a known image, search for it on https://index.docker.io or on the command line,

$ docker search fedora

Try out a shell with,

$ docker run -i -t mattdm/fedora /bin/bash

Getting started: Installing a single node Condor pool

July 26, 2010

Install the condor package.

[root@eeyore ~]# yum -y install condor

You’ll get classads and gsoap as well.

Start Condor.

[root@eeyore ~]# service condor start
Starting Condor daemons:                                   [  OK  ]

Take a look at your new Personal Condor setup.

[root@eeyore ~]# condor_q

-- Submitter: localhost.localdomain :  : localhost.localdomain
 ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD               

0 jobs; 0 idle, 0 running, 0 held
[root@eeyore ~]# condor_status

Name               OpSys      Arch   State     Activity LoadAv Mem   ActvtyTime

slot1@localhost.lo LINUX      X86_64 Unclaimed Idle     0.510   940  0+00:00:04
slot2@localhost.lo LINUX      X86_64 Unclaimed Idle     0.000   940  0+00:00:05
slot3@localhost.lo LINUX      X86_64 Unclaimed Idle     0.000   940  0+00:00:06
slot4@localhost.lo LINUX      X86_64 Unclaimed Idle     0.000   940  0+00:00:07
                     Total Owner Claimed Unclaimed Matched Preempting Backfill

        X86_64/LINUX     4     0       0         4       0          0        0

               Total     4     0       0         4       0          0        0

Test it out with a job, as yourself.

Write a job submit file.

09:22:46am> eeyore:~ $ cat > first.job
cmd = /bin/cat
args = /proc/self/status
output = first.job.$(cluster).$(process).out
error = first.job.$(cluster).$(process).err
log = first.job.log
queue 3
^D

Submit your job.

09:24:23am> eeyore:~ $ condor_submit first.job 
Submitting job(s)...
Logging submit event(s)...
3 job(s) submitted to cluster 1.

Check the queue for your jobs.

09:24:39am> eeyore:~ $ condor_q

-- Submitter: localhost.localdomain :  : localhost.localdomain
 ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD               
   1.0   matt            7/26 09:24   0+00:00:00 I  0   0.1  cat /proc/self/sta
   1.1   matt            7/26 09:24   0+00:00:00 I  0   0.1  cat /proc/self/sta
   1.2   matt            7/26 09:24   0+00:00:00 I  0   0.1  cat /proc/self/sta

3 jobs; 3 idle, 0 running, 0 held

(Write a little in your blog and miss the jobs running.)

09:24:47am> eeyore:~ $ condor_q
-- Submitter: localhost.localdomain :  : localhost.localdomain
 ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD               

0 jobs; 0 idle, 0 running, 0 held

Check the output.

09:25:01am> eeyore:~ $ l first.job*
4.0K -rw-------. 1 matt matt  157 Jul 26 09:24 first.job
   0 -rw-------. 1 matt matt    0 Jul 26 09:24 first.job.1.0.err
   0 -rw-------. 1 matt matt    0 Jul 26 09:24 first.job.1.2.err
   0 -rw-------. 1 matt matt    0 Jul 26 09:24 first.job.1.1.err
4.0K -rw-------. 1 matt matt  871 Jul 26 09:24 first.job.1.0.out
4.0K -rw-------. 1 matt matt  871 Jul 26 09:24 first.job.1.2.out
4.0K -rw-------. 1 matt matt  871 Jul 26 09:24 first.job.1.1.out
4.0K -rw-------. 1 matt matt 1.8K Jul 26 09:24 first.job.log

The jobs can be found in the queue’s history.

09:28:59am> eeyore:~ $ condor_history
 ID      OWNER            SUBMITTED     RUN_TIME ST   COMPLETED CMD            
   1.2   matt            7/26 09:24   0+00:00:00 C   7/26 09:24 /bin/cat /proc/
   1.0   matt            7/26 09:24   0+00:00:00 C   7/26 09:24 /bin/cat /proc/
   1.1   matt            7/26 09:24   0+00:00:00 C   7/26 09:24 /bin/cat /proc/

It is just that simple.


%d bloggers like this: