Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Feb 8, 2020
1 parent 0abe7a8 commit 30fd0f2
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ jobs:
docker:
- image: circleci/buildpack-deps:18.04
environment:
SYSLOG: '3.25.1'
SYSLOG: 'syslog-ng-3.25.1'
<<: *build-sc4s
build-sc4s-master:
docker:
Expand Down
Binary file added docs/developing/gh_clone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/developing/gh_fork.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions docs/developing/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Development setup (BETA)

## Get Docker

Development requires Docker desktop available for windows + and mac or Docker CE available for Linux visit (Docker)[https://www.docker.com/get-started]
for download instructions

## Setup VS Code IDE

VS Code provides a free IDE experience that is effective for daily development with SC4S visit (Microsoft)[https://code.visualstudio.com/docs/introvideos/basics]
to download and install for your plaform (windows/mac/linux)

## Fork and Clone the github repository

Visit our repository at (Github)[https://github.com/splunk/splunk-connect-for-syslog] and "fork" our repository this will allow you to make changes and submit pull requests.

![How to Fork](gh_fork.png)

Click the clone icon and select the location

![How to Clone](gh_clone.png)

## Setup the project and install requirements

The follow steps are only required on the first time run.

* Install VS Code Extensions S
* Python
* Test Explorer
* "Python Test Explorer"
* Click the "Run/Debug" bug icon
* Select the "Setup Project" task and click the Green play icon
* Select the "Setup Requirements" task and click the Green play icon

![VS Code setup](vsc_run.png)

## Click the test lab icon

* Run all tests this will appear to do nothing for a period system fan may spin loud whiletests are run icons on each test will turn green
or red to indicate pass fail however VS Code does not show the status of status until the tests complete

![VS Code Debug](vsc_debug.png)

Binary file added docs/developing/vsc_debug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/developing/vsc_run.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ nav:
- 'Docker CE + Swarm RHEL 7.7': 'gettingstarted/docker-swarm-rhel7.md'
- 'Bring your own Envionment': 'gettingstarted/byoe-rhel7.md'
- Configuration: 'configuration.md'
- Developing: 'docs/developing/index.md'
- Sources:
- About: sources/index.md
- Checkpoint: sources/Checkpoint/index.md
Expand Down
2 changes: 1 addition & 1 deletion package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#You should have received a copy of the CC0 legalcode along with this
#work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
ARG BRANCH=master
FROM docker.pkg.github.com/splunk/splunk-syslog-ng-container/splunk-syslog-ng-container:${BRANCH}
FROM splunk/scs:base-${BRANCH}

COPY --from=hairyhenderson/gomplate:v3.5.0 /gomplate /usr/local/bin/gomplate

Expand Down
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ testpaths = tests
addopts =
-v --tb=long
--splunk_type=docker
--maxfail=1
filterwarnings =
ignore::DeprecationWarning
junit_family=xunit1

0 comments on commit 30fd0f2

Please sign in to comment.