Skip to content

Commit 8055f1c

Browse files
authored
Merge pull request #43 from feloy/fix-license
fix license + docker usage
2 parents 47828d3 + 8be9b2c commit 8055f1c

17 files changed

+474
-362
lines changed

LICENSE

+201-277
Large diffs are not rendered by default.

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Docker OpenShift Analyzer
1+
# OpenShift Checker
22

3-
The Docker OpenShift analyzer is a tool whose goal is to analyze a Dockerfile and highlight the directives and commands which could cause an unexpected behavior when running on an OpenShift cluster.
3+
The OpenShift checker is a tool whose goal is to analyze a Containerfile and highlight the directives and commands which could cause an unexpected behavior when running on an OpenShift cluster.
44

5-
In many cases a Dockerfile could work fine on a Kubernetes cluster and fail on OpenShift because of its security restrictions. This tool should help finding what is wrong and driving users to update their Dockerfiles to make them OpenShift compliant.
5+
In many cases a Containerfile could work fine on a Kubernetes cluster and fail on OpenShift because of its security restrictions. This tool should help finding what is wrong and driving users to update their Containerfiles to make them OpenShift compliant.
66

7-
The Dockerfile's directives and commands currently supported are listed below.
7+
The Containerfile's directives and commands currently supported are listed below.
88

99
### User directive
1010

@@ -92,7 +92,7 @@ To build and use the cli, execute
9292

9393
```
9494
go build -o doa[.exe]
95-
doa[.exe] analyze -f /your/local/project/path[/Dockerfile_name]
95+
doa[.exe] analyze -f /your/local/project/path[/Containerfile_name]
9696
```
9797

9898
Podman Desktop Extension
@@ -110,11 +110,11 @@ For information on getting started, refer to the [CONTRIBUTING instructions](CON
110110
Feedback & Questions
111111
====================
112112
If you discover an issue please file a bug and we will fix it as soon as possible.
113-
* File a bug in [GitHub Issues](https://github.com/lstocchi/docker-openshift-analyzer).
113+
* File a bug in [GitHub Issues](https://github.com/redhat-developer/podman-desktop-image-checker-openshift-ext/issues).
114114

115115
License
116116
=======
117-
EPL 2.0, See [LICENSE](LICENSE) for more information.
117+
Apache 2.0, See [LICENSE](LICENSE) for more information.
118118

119119
Acknowledgments
120120
===============

pkg/cli/analyze.go

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
1-
package cli
1+
/**********************************************************************
2+
* Copyright (C) 2024 Red Hat, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* SPDX-License-Identifier: Apache-2.0
17+
***********************************************************************/
18+
19+
package cli
220

321
import (
422
"encoding/json"

pkg/cli/cli.go

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
1-
package cli
1+
/**********************************************************************
2+
* Copyright (C) 2024 Red Hat, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* SPDX-License-Identifier: Apache-2.0
17+
***********************************************************************/
18+
19+
package cli
220

321
import (
422
"errors"

pkg/command/analyzer.go

+17-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
/*******************************************************************************
2-
* Copyright (c) 2022 Red Hat, Inc.
3-
* Distributed under license by Red Hat, Inc. All rights reserved.
4-
* This program is made available under the terms of the
5-
* Eclipse Public License v2.0 which accompanies this distribution,
6-
* and is available at http://www.eclipse.org/legal/epl-v20.html
1+
/**********************************************************************
2+
* Copyright (C) 2022 Red Hat, Inc.
73
*
8-
* Contributors:
9-
* Red Hat, Inc.
10-
******************************************************************************/
11-
package command
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* SPDX-License-Identifier: Apache-2.0
17+
***********************************************************************/
18+
package command
1219

1320
import (
1421
"context"

pkg/command/analyzer_test.go

+18-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
1-
/*******************************************************************************
2-
* Copyright (c) 2022 Red Hat, Inc.
3-
* Distributed under license by Red Hat, Inc. All rights reserved.
4-
* This program is made available under the terms of the
5-
* Eclipse Public License v2.0 which accompanies this distribution,
6-
* and is available at http://www.eclipse.org/legal/epl-v20.html
1+
/**********************************************************************
2+
* Copyright (C) 2022 Red Hat, Inc.
73
*
8-
* Contributors:
9-
* Red Hat, Inc.
10-
******************************************************************************/
11-
package command
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* SPDX-License-Identifier: Apache-2.0
17+
***********************************************************************/
18+
19+
package command
1220

1321
import "testing"
1422

pkg/command/expose.go

+17-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
/*******************************************************************************
2-
* Copyright (c) 2022 Red Hat, Inc.
3-
* Distributed under license by Red Hat, Inc. All rights reserved.
4-
* This program is made available under the terms of the
5-
* Eclipse Public License v2.0 which accompanies this distribution,
6-
* and is available at http://www.eclipse.org/legal/epl-v20.html
1+
/**********************************************************************
2+
* Copyright (C) 2022 Red Hat, Inc.
73
*
8-
* Contributors:
9-
* Red Hat, Inc.
10-
******************************************************************************/
11-
package command
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* SPDX-License-Identifier: Apache-2.0
17+
***********************************************************************/
18+
package command
1219

1320
import (
1421
"context"

pkg/command/from.go

+17-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
/*******************************************************************************
2-
* Copyright (c) 2023 Red Hat, Inc.
3-
* Distributed under license by Red Hat, Inc. All rights reserved.
4-
* This program is made available under the terms of the
5-
* Eclipse Public License v2.0 which accompanies this distribution,
6-
* and is available at http://www.eclipse.org/legal/epl-v20.html
1+
/**********************************************************************
2+
* Copyright (C) 2023 Red Hat, Inc.
73
*
8-
* Contributors:
9-
* Red Hat, Inc.
10-
******************************************************************************/
11-
package command
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* SPDX-License-Identifier: Apache-2.0
17+
***********************************************************************/
18+
package command
1219

1320
import (
1421
"context"

pkg/command/run.go

+17-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
/*******************************************************************************
2-
* Copyright (c) 2022 Red Hat, Inc.
3-
* Distributed under license by Red Hat, Inc. All rights reserved.
4-
* This program is made available under the terms of the
5-
* Eclipse Public License v2.0 which accompanies this distribution,
6-
* and is available at http://www.eclipse.org/legal/epl-v20.html
1+
/**********************************************************************
2+
* Copyright (C) 2022 Red Hat, Inc.
73
*
8-
* Contributors:
9-
* Red Hat, Inc.
10-
******************************************************************************/
11-
package command
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* SPDX-License-Identifier: Apache-2.0
17+
***********************************************************************/
18+
package command
1219

1320
import (
1421
"context"

pkg/command/run_test.go

+17-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
/*******************************************************************************
2-
* Copyright (c) 2022 Red Hat, Inc.
3-
* Distributed under license by Red Hat, Inc. All rights reserved.
4-
* This program is made available under the terms of the
5-
* Eclipse Public License v2.0 which accompanies this distribution,
6-
* and is available at http://www.eclipse.org/legal/epl-v20.html
1+
/**********************************************************************
2+
* Copyright (C) 2022 Red Hat, Inc.
73
*
8-
* Contributors:
9-
* Red Hat, Inc.
10-
******************************************************************************/
11-
package command
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* SPDX-License-Identifier: Apache-2.0
17+
***********************************************************************/
18+
package command
1219

1320
import (
1421
"context"

pkg/command/user.go

+17-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
/*******************************************************************************
2-
* Copyright (c) 2022 Red Hat, Inc.
3-
* Distributed under license by Red Hat, Inc. All rights reserved.
4-
* This program is made available under the terms of the
5-
* Eclipse Public License v2.0 which accompanies this distribution,
6-
* and is available at http://www.eclipse.org/legal/epl-v20.html
1+
/**********************************************************************
2+
* Copyright (C) 2022 Red Hat, Inc.
73
*
8-
* Contributors:
9-
* Red Hat, Inc.
10-
******************************************************************************/
11-
package command
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* SPDX-License-Identifier: Apache-2.0
17+
***********************************************************************/
18+
package command
1219

1320
import (
1421
"context"

pkg/decompiler/decompiler.go

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
1-
package decompiler
1+
/**********************************************************************
2+
* Copyright (C) 2024 Red Hat, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* SPDX-License-Identifier: Apache-2.0
17+
***********************************************************************/
18+
package decompiler
219

320
import (
421
"github.com/moby/buildkit/frontend/dockerfile/parser"

pkg/decompiler/docker/decompiler.go

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
1-
package decompiler
1+
/**********************************************************************
2+
* Copyright (C) 2024 Red Hat, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* SPDX-License-Identifier: Apache-2.0
17+
***********************************************************************/
18+
package decompiler
219

320
import (
421
"context"

pkg/decompiler/podman/decompiler.go

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
1-
package decompiler
1+
/**********************************************************************
2+
* Copyright (C) 2024 Red Hat, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* SPDX-License-Identifier: Apache-2.0
17+
***********************************************************************/
18+
package decompiler
219

320
import (
421
"context"

0 commit comments

Comments
 (0)