Commit Graph

13 Commits

Author SHA1 Message Date
Mohammed Ahmed
37f51ebd57 Enabling override of required golang in rpm (#4888)
- This makes it possible to override golang version based on
   availability in build system of rpm

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
2021-07-19 07:40:54 -04:00
Rodolfo Napoles
051ad88c2c #4062 Update installing odo on Windows section to fix filename and ad… (#4176)
* #4062 Update installing odo on Windows section to fix filename and add additional steps and information required

* #4062 updated to make it generic, got rid of go/bin references

* Incorporated feedback from dharmit

* #4062 made changes to replace tar.gz for .zip for windows installer

* #4062 incorporated feedback from Dharmit

* #4062 Fixed a couple of typos to addres dharmit feedback

* 4062 fix mising dot in .exe

* 4062 fix if sattement

* 4062 fix syntax error

* 4062 fix syntax error

* 4062 fix syntax error

* 4062 fix syntax error

* 4062 fix syntax error

* Fixed statements for when suffix is .exe

* Fixed if syntax

* changed syntax

* Fixed syntax

* fixed zip command syntax

* Removed unnecessary comments and updtaed redistributable filename to add .exe before .zip
2020-12-18 06:53:39 +00:00
Mohammed Ahmed
76f306ea5c Enforcing removal of strip post step in rpmbuild (#4025)
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
2020-09-24 10:36:03 +00:00
Mohammed Ahmed
4305079156 Cleaning up odo rpm spec and scripts (#3904)
* Fixing rpm spec Provides and Obsoletes to be more specific

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Fixing local build script to use dist/rpmbuild and topdir for build

 - This prevents polluting users main rpmbuild

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Setting goflags during `make test` and turning off missing buildid

 - without goflags, unit tests take a while as they dont use vendor
 - providing -mod=vendor does not seem to help
 - missing gnu build ids in go binaries can cause warnings

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Removing GOFLAGS from spec and adding build_flags to test target

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Unsetting any goflags for make test in openshift ci

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Removing the set +x from local build script

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Adding rpm tests

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Removing last rm -rf

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Reverting to explicitly setting GOFLAGS for make test

 - It appears that while `-mod=vendor` flag is available for `go test`
   it is sometimes not respected
 - It is therefore, better to just set GOFLAGS only for make test
 - More investigation is needed to find better solution, but we should
   not break stuff relation to testing and release, where we should not
   be pulling from outside world

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Cleaning up rpm-prepare

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Removing unnessasary newline

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Adding version file to spec for any future automation to have easier time

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
2020-09-10 11:55:19 -04:00
Charlie Drage
7e3290cadb Fix package name (#3624)
**What type of PR is this?**

/kind bug

**What does does this PR do / why we need it**:

Package name in our internal git repository / brew is changed from
openshift-odo to just `odo`

**Which issue(s) this PR fixes**:

N/A

**PR acceptance criteria**:

N/A

**How to test changes / Special notes to the reviewer**:

N/A

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2020-07-22 15:26:42 -04:00
Charlie Drage
a40fbd34e1 Fix building RPM (#3623)
**What type of PR is this?**
> Uncomment only one ` /kind` line, and delete the rest.
> For example, `> /kind bug` would simply become: `/kind bug`

/kind bug

**What does does this PR do / why we need it**:

Our internal release system requires all the following variables /
information in the spec in order to do a s390x release. This if
statement has been removed so we may be correctly build our internal
build.

**Which issue(s) this PR fixes**:

N/A

**PR acceptance criteria**:

N/A

**How to test changes / Special notes to the reviewer**:

N/A

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2020-07-22 14:43:47 -04:00
Mohammed Ahmed
46b512ee21 Building redistributable only on x86_64 and updating golang version to 1.13 (#3464)
* Building redistributable only on x86_64

We dont need redistributable package building
on multiple architectures as it is happening right
now (case in point internal scratch build)

Eg:
  - openshift-odo-redistributable-1.2.3-1.el8.s390x.rpm
  - openshift-odo-redistributable-1.2.3-1.el8.ppc64le.rpm
  - openshift-odo-redistributable-1.2.3-1.el8.x86_64.rpm

We only need last one as individual rpms for specific architectures
is fine but not the redistributable ones.

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Updating golang version to 1.13

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
2020-07-08 22:59:10 +02:00
Mohammed Ahmed
75b2973eb1 Adding messaging and script updates to ensure smoother golang updates (#3049)
- Updated rpm spec and rpm-prepare script to template golang version
 - Docs now contain a warning about golang version update

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
2020-04-30 22:50:08 +02:00
Tomas Kral
0408e03d3e use just odo insetad of odo (OpenShift Do) (#3030) 2020-04-29 07:45:57 +02:00
Tomas Kral
7f14dab08e Make odo buildable on Go 1.12 (#3022)
* pin github.com/hashicorp/go-multierror to v1.0.0

* update rpmspec golang_version to 1.12
2020-04-28 18:39:21 +05:30
Yaakov Selkowitz
de26405161 Build and package for all RHEL architectures (#2384) 2019-11-11 09:31:07 +01:00
Mohammed Ahmed
f439087dd9 Updating spec to use make prepare-release to create binaries (#2283)
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
2019-10-15 10:08:57 +02:00
Mohammed Ahmed
567ad811de Setting up rpm spec for odo for rpm build (#2107)
* Setting up rpm spec for odo for rpm build

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Fixing typo

* Printing envs for debugging

* Removing -rpm suffix for rpm target

* Update rpm prepare script to store version information alongside rpmbuild artifacts

* Adding script to create tarball of the source. To be run after rpm-prepare is done

* Fixing dist git tarball generator

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Removing script from commit as its not yet perfect

* Updating redistributable to use name-redistributable

* Removing version replacement in version.go

* Some minor fixes to spec and script

* Record the need to update version in rpm-prepare script into release process

* Renaming atomic-openshift-odo to openshift-odo
2019-09-20 16:59:19 +02:00