Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix line endings for in swagger-ui.js #110

Open
wants to merge 179 commits into
base: master
Choose a base branch
from
Open

fix line endings for in swagger-ui.js #110

wants to merge 179 commits into from

Conversation

mrjoshuap
Copy link

These were causing an error in the deployment, specifically:

line endings were causing the zip file repository to fail to git init:

fatal: CRLF would be replaced by LF in coolstore-gw/src/main/resources/static/swagger-ui.js.

{
  "changed": true,
  "cmd": "mv /tmp/coolstore-gitD55jJw/coolstore-microservice-stable-ocp-3.9/* /tmp/coolstore-gitD55jJw
 rm -rf /tmp/coolstore-gitD55jJw/coolstore-microservice-stable-ocp-3.9
 git init
 git remote add origin http://gogs-cicd-demo.192.168.42.114.nip.io/team/coolstore-microservice.git
 git add . --all
 git config user.email \"[email protected]\"
 git config user.name \"rh-developer\"
 git commit -m \"Initial add\"
 git push -f http://team:[email protected]/team/coolstore-microservice.git master",
  "delta": "0:00:00.142002",
  "end": "2018-05-19 18:35:10.915118",
  "msg": "non-zero return code",
  "rc": 1,
  "start": "2018-05-19 18:35:10.773116",
  "stderr": "fatal: CRLF would be replaced by LF in coolstore-gw/src/main/resources/static/swagger-ui.js.
error: src refspec master does not match any.
error: failed to push some refs to 'http://team:[email protected]/team/coolstore-microservice.git'",
  "stderr_lines": [
    "fatal: CRLF would be replaced by LF in coolstore-gw/src/main/resources/static/swagger-ui.js.",
    "error: src refspec master does not match any.",
    "error: failed to push some refs to 'http://team:[email protected]/team/coolstore-microservice.git'"
  ],
  "stdout": "Initialized empty Git repository in /tmp/coolstore-gitD55jJw/.git/
# On branch master
#
# Initial commit
#
# Untracked files:
#   (use \"git add <file>...\" to include in what will be committed)
#
#\tREADME.md
#\tcart-service/
#\tcatalog-service/
#\tcoolstore-gw/
#\tcoolstore-ui/
#\tdocs/
#\tinventory-service/
#\topenshift/
#\tpricing-service/
#\trating-service/
#\treview-service/
#\tsso-service/
nothing added to commit but untracked files present (use \"git add\" to track)",
  "stdout_lines": [
    "Initialized empty Git repository in /tmp/coolstore-gitD55jJw/.git/",
    "# On branch master",
    "#",
    "# Initial commit",
    "#",
    "# Untracked files:",
    "#   (use \"git add <file>...\" to include in what will be committed)",
    "#",
    "#\tREADME.md",
    "#\tcart-service/",
    "#\tcatalog-service/",
    "#\tcoolstore-gw/",
    "#\tcoolstore-ui/",
    "#\tdocs/",
    "#\tinventory-service/",
    "#\topenshift/",
    "#\tpricing-service/",
    "#\trating-service/",
    "#\treview-service/",
    "#\tsso-service/",
    "nothing added to commit but untracked files present (use \"git add\" to track)"
  ]
}

siamaksade and others added 30 commits December 2, 2017 16:16
line endings were causing the zip file repository to fail to git init:

fatal: CRLF would be replaced by LF in coolstore-gw/src/main/resources/static/swagger-ui.js.

{{{

{
  "changed": true,
  "cmd": "mv /tmp/coolstore-gitD55jJw/coolstore-microservice-stable-ocp-3.9/* /tmp/coolstore-gitD55jJw
 rm -rf /tmp/coolstore-gitD55jJw/coolstore-microservice-stable-ocp-3.9
 git init
 git remote add origin http://gogs-cicd-demo.192.168.42.114.nip.io/team/coolstore-microservice.git
 git add . --all
 git config user.email \"[email protected]\"
 git config user.name \"rh-developer\"
 git commit -m \"Initial add\"
 git push -f http://team:[email protected]/team/coolstore-microservice.git master",
  "delta": "0:00:00.142002",
  "end": "2018-05-19 18:35:10.915118",
  "msg": "non-zero return code",
  "rc": 1,
  "start": "2018-05-19 18:35:10.773116",
  "stderr": "fatal: CRLF would be replaced by LF in coolstore-gw/src/main/resources/static/swagger-ui.js.
error: src refspec master does not match any.
error: failed to push some refs to 'http://team:[email protected]/team/coolstore-microservice.git'",
  "stderr_lines": [
    "fatal: CRLF would be replaced by LF in coolstore-gw/src/main/resources/static/swagger-ui.js.",
    "error: src refspec master does not match any.",
    "error: failed to push some refs to 'http://team:[email protected]/team/coolstore-microservice.git'"
  ],
  "stdout": "Initialized empty Git repository in /tmp/coolstore-gitD55jJw/.git/
# On branch master
#
# Initial commit
#
# Untracked files:
#   (use \"git add <file>...\" to include in what will be committed)
#
#\tREADME.md
#\tcart-service/
#\tcatalog-service/
#\tcoolstore-gw/
#\tcoolstore-ui/
#\tdocs/
#\tinventory-service/
#\topenshift/
#\tpricing-service/
#\trating-service/
#\treview-service/
#\tsso-service/
nothing added to commit but untracked files present (use \"git add\" to track)",
  "stdout_lines": [
    "Initialized empty Git repository in /tmp/coolstore-gitD55jJw/.git/",
    "# On branch master",
    "#",
    "# Initial commit",
    "#",
    "# Untracked files:",
    "#   (use \"git add <file>...\" to include in what will be committed)",
    "#",
    "#\tREADME.md",
    "#\tcart-service/",
    "#\tcatalog-service/",
    "#\tcoolstore-gw/",
    "#\tcoolstore-ui/",
    "#\tdocs/",
    "#\tinventory-service/",
    "#\topenshift/",
    "#\tpricing-service/",
    "#\trating-service/",
    "#\treview-service/",
    "#\tsso-service/",
    "nothing added to commit but untracked files present (use \"git add\" to track)"
  ]
}

}}}
it was difficult not knowing environment vairables and the like :-)
don’t need them.
line endings were causing the zip file repository to fail to git init:

fatal: CRLF would be replaced by LF in coolstore-gw/src/main/resources/static/swagger-ui.js.

{{{

{
  "changed": true,
  "cmd": "mv /tmp/coolstore-gitD55jJw/coolstore-microservice-stable-ocp-3.9/* /tmp/coolstore-gitD55jJw
 rm -rf /tmp/coolstore-gitD55jJw/coolstore-microservice-stable-ocp-3.9
 git init
 git remote add origin http://gogs-cicd-demo.192.168.42.114.nip.io/team/coolstore-microservice.git
 git add . --all
 git config user.email \"[email protected]\"
 git config user.name \"rh-developer\"
 git commit -m \"Initial add\"
 git push -f http://team:[email protected]/team/coolstore-microservice.git master",
  "delta": "0:00:00.142002",
  "end": "2018-05-19 18:35:10.915118",
  "msg": "non-zero return code",
  "rc": 1,
  "start": "2018-05-19 18:35:10.773116",
  "stderr": "fatal: CRLF would be replaced by LF in coolstore-gw/src/main/resources/static/swagger-ui.js.
error: src refspec master does not match any.
error: failed to push some refs to 'http://team:[email protected]/team/coolstore-microservice.git'",
  "stderr_lines": [
    "fatal: CRLF would be replaced by LF in coolstore-gw/src/main/resources/static/swagger-ui.js.",
    "error: src refspec master does not match any.",
    "error: failed to push some refs to 'http://team:[email protected]/team/coolstore-microservice.git'"
  ],
  "stdout": "Initialized empty Git repository in /tmp/coolstore-gitD55jJw/.git/
# On branch master
#
# Initial commit
#
# Untracked files:
#   (use \"git add <file>...\" to include in what will be committed)
#
#\tREADME.md
#\tcart-service/
#\tcatalog-service/
#\tcoolstore-gw/
#\tcoolstore-ui/
#\tdocs/
#\tinventory-service/
#\topenshift/
#\tpricing-service/
#\trating-service/
#\treview-service/
#\tsso-service/
nothing added to commit but untracked files present (use \"git add\" to track)",
  "stdout_lines": [
    "Initialized empty Git repository in /tmp/coolstore-gitD55jJw/.git/",
    "# On branch master",
    "#",
    "# Initial commit",
    "#",
    "# Untracked files:",
    "#   (use \"git add <file>...\" to include in what will be committed)",
    "#",
    "#\tREADME.md",
    "#\tcart-service/",
    "#\tcatalog-service/",
    "#\tcoolstore-gw/",
    "#\tcoolstore-ui/",
    "#\tdocs/",
    "#\tinventory-service/",
    "#\topenshift/",
    "#\tpricing-service/",
    "#\trating-service/",
    "#\treview-service/",
    "#\tsso-service/",
    "nothing added to commit but untracked files present (use \"git add\" to track)"
  ]
}

}}}
it was difficult not knowing environment vairables and the like :-)
don’t need them.
mainly for consistency; will probably want to go through and add a couple more labels as well.
specified correct labels:

* app
* application
* coolstore
* demo
* template
* MQ_CLUSTER_PASSWORD
* JGROUPS_CLUSTER_PASSWORD
* GITHUB_WEBHOOK_SECRET
* GENERIC_WEBHOOK_SECRET
* JWS_ADMIN_USERNAME
* JWS_ADMIN_PASSWORD
* DATAGRID_JGROUPS_CLUSTER_PASSWORD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants