Skip to content

Commit a07fda9

Browse files
committed
switch docker image from centos to fedora
1 parent 91e9a21 commit a07fda9

File tree

11 files changed

+18
-31
lines changed

11 files changed

+18
-31
lines changed

.cirrus.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ task:
22
env:
33
GOPROXY: https://proxy.golang.org
44
matrix:
5-
VERSION: 1.19
65
VERSION: 1.20
76
VERSION: 1.21
87

README.asciidoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ be replayed with the +sshproxy-replay+ command.
3131
Compilation
3232
-----------
3333

34-
Install the Go compiler suite: see http://golang.org/doc/install for details.
34+
Install the Go (version >= 1.20) compiler suite: see
35+
http://golang.org/doc/install for details.
3536

3637
Define and export the +$GOPATH+ directory where the source code will be
3738
unpacked (e.g. '$HOME/go'):
@@ -69,7 +70,7 @@ Modify the SSH daemon configuration +/etc/ssh/sshd_config+ by adding:
6970
Copying
7071
-------
7172
72-
Copyright (C) 2015-2022 CEA/DAM/DIF
73+
Copyright (C) 2015-2023 CEA/DAM/DIF
7374
7475
sshproxy is distributed under the CeCILL-B, a French transposition of the BSD
7576
license. See the included files +Licence_CeCILL-B_V1-en.txt+ (English version)

doc/sshproxy-dumpd.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Cyril Servant <[email protected]>.
4949

5050
COPYING
5151
-------
52-
Copyright (C) 2015-2022 CEA/DAM/DIF. Free use of this software is granted
52+
Copyright (C) 2015-2023 CEA/DAM/DIF. Free use of this software is granted
5353
under the term of the CeCILL-B license.
5454

5555
// vim:tw=78:ft=asciidoc:

doc/sshproxy-replay.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Cyril Servant <[email protected]>.
5959

6060
COPYING
6161
-------
62-
Copyright (C) 2015-2022 CEA/DAM/DIF. Free use of this software is granted
62+
Copyright (C) 2015-2023 CEA/DAM/DIF. Free use of this software is granted
6363
under the term of the CeCILL-B license.
6464

6565
// vim:tw=78:ft=asciidoc:

doc/sshproxy.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Servant <[email protected]>.
5252

5353
COPYING
5454
-------
55-
Copyright (C) 2015-2022 CEA/DAM/DIF. Free use of this software is granted
55+
Copyright (C) 2015-2023 CEA/DAM/DIF. Free use of this software is granted
5656
under the term of the CeCILL-B license.
5757

5858
// vim:tw=78:ft=asciidoc:

doc/sshproxy.yaml.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ Servant <[email protected]>.
345345

346346
COPYING
347347
-------
348-
Copyright (C) 2015-2022 CEA/DAM/DIF. Free use of this software is granted
348+
Copyright (C) 2015-2023 CEA/DAM/DIF. Free use of this software is granted
349349
under the term of the CeCILL-B license.
350350
351351
// vim:tw=78:ft=asciidoc:

doc/sshproxyctl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Servant <[email protected]>.
8888

8989
COPYING
9090
-------
91-
Copyright (C) 2015-2022 CEA/DAM/DIF. Free use of this software is granted
91+
Copyright (C) 2015-2023 CEA/DAM/DIF. Free use of this software is granted
9292
under the term of the CeCILL-B license.
9393

9494
// vim:tw=78:ft=asciidoc:

misc/sshproxy.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Summary: SSH proxy
99
License: CeCILL-B
1010
Source: https://github.com/cea-hpc/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
1111
ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm} aarch64}
12-
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
12+
BuildRequires: golang
1313
BuildRequires: asciidoc
1414

1515
Summary: SSH proxy

test/README.asciidoc

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,14 @@ diff --git a/test/docker-compose.yaml b/test/docker-compose.yaml
4444
index 65ae927..0621932 100644
4545
--- a/test/docker-compose.yaml
4646
+++ b/test/docker-compose.yaml
47-
@@ -5,14 +5,14 @@ services:
48-
container_name: tester
49-
hostname: tester
50-
build: centos-image
51-
- user: centos
52-
- working_dir: /home/centos
53-
+ volumes:
54-
+ - ../test:/sshproxy-test
55-
depends_on:
56-
- gateway1
57-
- gateway2
47+
@@ -13,8 +13,8 @@ services:
5848
- server1
5949
- server2
6050
- server3
51+
- #command: ["/usr/bin/sleep", "1000"]
6152
- command: ["/usr/bin/go", "test", "-v", "-failfast", "-tags", "docker", "./sshproxy_test.go"]
62-
+ command: ["/usr/sbin/sshd", "-De"]
53+
+ command: ["/usr/bin/sleep", "1000"]
54+
+ #command: ["/usr/bin/go", "test", "-v", "-failfast", "-tags", "docker", "./sshproxy_test.go"]
6355
6456
gateway1:
6557
container_name: gateway1
@@ -72,13 +64,7 @@ Then we start (and build if necessary) all containers:
7264
Once every container is started, we can connect to the tester container:
7365

7466
$ docker-compose exec tester /bin/bash
75-
[root@tester /]#
76-
77-
It is then recommended to change the test file by a link to the one found in
78-
the repository (thanks to the volume mounted in the container):
79-
80-
[root@tester /]# su - centos
81-
[centos@tester ~]$ ln -s -f /sshproxy-test/centos-image/sshproxy_test.go
67+
[centos@tester ~]$
8268

8369
We then use the +go test+ command to run the tests:
8470

test/centos-image/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
FROM centos:7
1+
FROM fedora:latest
22

33
# Install development environment to compile RPM
44
RUN set -ex \
5-
&& yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
65
&& yum -y update \
7-
&& yum -y install asciidoc etcd git golang iproute make openssh-server rpm-build
6+
&& yum -y install asciidoc etcd git golang hostname iproute make openssh-server rpm-build
87

98
# Create centos, user1 and user2 users ; centos and user1 groups
109
RUN set -ex \

0 commit comments

Comments
 (0)